Function at 0x49b5c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x18
push esi
mov esi, ecx
mov eax, dword [esi + 0x54]
test eax, eax
je 0x49ba30
push ebx
mov ebx, dword [esp + 0x24]
push ebx
call fcn.0049c2d0
test eax, eax
je 0x49ba23
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x20]
push edi
mov edi, dword [esi + 0x3c]
push ebx
add ecx, edi
push eax
push ecx
mov ecx, esi
call fcn.0049afc0
push ebx
mov ecx, esi
call fcn.0049c390
mov edi, 0x84
mov ecx, dword [esi + 0x3c]
mov eax, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
push 0
push ebx
add eax, ecx
mov ecx, dword [esi + 4]
push edx
push eax
add ecx, edi
call fcn.00404eb0
add edi, 0x2c
cmp edi, 0x160
jl 0x49b607
mov eax, dword [0x65f85c]
mov dword [esp + 0xc], 0
xor ecx, ecx
lea edi, [esi + 0x98]
push ebp
xor edx, edx
mov dword [esp + 0x14], edx
mov ebx, ecx
lea ebx, [ebx]
movzx ecx, byte [esi + 0x74]
add ecx, ebx
mov cx, word [esi + ecx*2 + 0x118]
test cx, cx
je 0x49b7aa
mov ebp, dword [esp + 0x10]
cmp dword [esi + 0x90], ebp
jne 0x49b74e
cmp dword [esi + 0x94], edx
jne 0x49b74e
movzx ecx, cx
mov edx, dword [ecx*4 + 0x65945c]
test edx, edx
je 0x49b6df
mov ebp, dword [eax + 0xc]
mov ecx, edx
mov edx, dword [ecx + 0x110]
mov ecx, dword [ecx + 0x10c]
cmp ecx, ebp
jae 0x49b6df
cmp edx, dword [eax + 0x10]
jae 0x49b6df
mov ebp, dword [eax + 0x14]
mov ecx, dword [ebp + ecx*4]
mov ecx, dword [ecx + edx*4]
test ecx, ecx
je 0x49b6df
mov eax, dword [esi + 0x24]
mov edx, dword [edi + 4]
add edx, eax
mov eax, dword [esi + 0x3c]
push 0xe
push ecx
mov ecx, dword [edi]
push edx
mov edx, dword [esi + 0x20]
add edx, ecx
mov ecx, dword [esp + 0x38]
add edx, eax
call fcn.0044f860
mov eax, dword [0x65f85c]
movzx ecx, byte [esi + 0x74]
add ecx, ebx
movzx ecx, word [esi + ecx*2 + 0x118]
mov edx, dword [ecx*4 + 0x65945c]
test edx, edx
je 0x49b7aa
mov ebp, dword [eax + 0xc]
mov ecx, edx
mov edx, dword [ecx + 0x110]
mov ecx, dword [ecx + 0x10c]
cmp ecx, ebp
jae 0x49b7aa
cmp edx, dword [eax + 0x10]
jae 0x49b7aa
mov ebp, dword [eax + 0x14]
mov ecx, dword [ebp + ecx*4]
mov ecx, dword [ecx + edx*4]
test ecx, ecx
je 0x49b7aa
mov edx, dword [edi + 4]
mov eax, dword [esi + 0x24]
push 0
push ecx
lea ecx, [edx + eax - 1]
mov eax, dword [edi]
mov edx, dword [esi + 0x20]
add edx, eax
mov eax, dword [esi + 0x3c]
push ecx
lea edx, [edx + eax - 1]
jmp 0x49b79c
movzx ecx, cx
mov edx, dword [ecx*4 + 0x65945c]
test edx, edx
je 0x49b7aa
mov ebp, dword [eax + 0xc]
mov ecx, edx
mov edx, dword [ecx + 0x110]
mov ecx, dword [ecx + 0x10c]
cmp ecx, ebp
jae 0x49b7aa
cmp edx, dword [eax + 0x10]
jae 0x49b7aa
mov ebp, dword [eax + 0x14]
mov ecx, dword [ebp + ecx*4]
mov ecx, dword [ecx + edx*4]
test ecx, ecx
je 0x49b7aa
mov eax, dword [esi + 0x24]
mov edx, dword [edi + 4]
add edx, eax
mov eax, dword [esi + 0x3c]
push 0
push ecx
mov ecx, dword [edi]
push edx
mov edx, dword [esi + 0x20]
add edx, ecx
add edx, eax
mov ecx, dword [esp + 0x38]
call fcn.0044f860
mov eax, dword [0x65f85c]
mov edx, dword [esp + 0x14]
inc edx
add ebx, 3
add edi, 0x10
cmp edx, 2
mov dword [esp + 0x14], edx
jl 0x49b650
mov ebp, dword [esp + 0x10]
inc ebp
cmp ebx, 0x18
mov dword [esp + 0x10], ebp
mov ecx, ebx
jl 0x49b642
mov ecx, dword [0x652e00]
call fcn.004a21f0
movzx eax, byte [esi + 0x2fc]
shl eax, 2
xor edx, edx
lea ecx, [eax + 4]
mov dword [esp + 0x14], edx
mov ebx, eax
cmp ebx, ecx
jge 0x49b868
add edx, ebx
shl edx, 4
lea ebp, [esi + ebx*4 + 0x300]
lea edi, [edx + esi + 0x178]
lea ecx, [ecx]
mov al, byte [ebp]
mov edx, dword [edi + 4]
sub al, 0x6f
movzx ecx, al
mov eax, dword [esi + 0x20]
push ecx
mov ecx, dword [esi + 0x24]
push 0x4bcadc
push 0
push 1
add edx, ecx
mov ecx, dword [edi]
push 0xffff
push edx
mov edx, dword [esi + 0x3c]
add eax, ecx
mov ecx, dword [0x652e00]
add eax, edx
push eax
push ecx
call fcn.004a23d0
movzx eax, byte [esi + 0x2fc]
shl eax, 2
add esp, 0x20
inc ebx
lea ecx, [eax + 4]
add ebp, 4
add edi, 0x10
cmp ebx, ecx
jl 0x49b810
mov edx, dword [esp + 0x14]
add edx, 8
cmp edx, 0x18
mov dword [esp + 0x14], edx
jl 0x49b7f4
mov ecx, dword [0x652e00]
call fcn.004a2250
mov edx, dword [0x65f85c]
xor eax, eax
mov dword [esp + 0x14], eax
jmp 0x49b890
movzx ebx, byte [esi + 0x2fc]
shl ebx, 2
lea ecx, [ebx + 4]
cmp ebx, ecx
jge 0x49b950
add eax, ebx
lea ecx, [esi + eax*2 + 0x148]
shl eax, 4
mov dword [esp + 0x10], ecx
lea edi, [eax + esi + 0x178]
lea esp, [esp]
mov eax, dword [esp + 0x10]
mov ax, word [eax]
test ax, ax
je 0x49b927
movzx eax, ax
mov ecx, dword [eax*4 + 0x65945c]
test ecx, ecx
je 0x49b927
mov ebp, dword [edx + 0xc]
mov eax, ecx
mov ecx, dword [eax + 0x110]
mov eax, dword [eax + 0x10c]
cmp eax, ebp
jae 0x49b927
cmp ecx, dword [edx + 0x10]
jae 0x49b927
mov ebp, dword [edx + 0x14]
mov eax, dword [ebp + eax*4]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x49b927
mov ecx, dword [edi + 4]
mov ebp, dword [esi + 0x24]
mov edx, dword [esi + 0x20]
push 0
add ecx, ebp
push eax
mov eax, dword [esi + 0x3c]
push ecx
add edx, dword [edi]
mov ecx, dword [esp + 0x38]
add edx, eax
call fcn.0044f860
mov edx, dword [0x65f85c]
movzx eax, byte [esi + 0x2fc]
mov ebp, dword [esp + 0x10]
inc ebx
add ebp, 2
lea ecx, [eax*4 + 4]
add edi, 0x10
cmp ebx, ecx
mov dword [esp + 0x10], ebp
jl 0x49b8c0
mov eax, dword [esp + 0x14]
add eax, 8
cmp eax, 0x18
mov dword [esp + 0x14], eax
jl 0x49b890
movzx eax, word [esi + 0x8c]
mov ecx, dword [eax*4 + 0x65945c]
test ecx, ecx
lea edi, [esi + 0x78]
pop ebp
je 0x49b9b0
mov ebx, dword [edx + 0xc]
mov eax, ecx
mov ecx, dword [eax + 0x110]
mov eax, dword [eax + 0x10c]
cmp eax, ebx
jae 0x49b9b0
cmp ecx, dword [edx + 0x10]
jae 0x49b9b0
mov edx, dword [edx + 0x14]
mov eax, dword [edx + eax*4]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x49b9b0
mov ecx, dword [edi + 8]
mov edx, dword [edi + 4]
push 0xa
push eax
push ecx
mov ecx, dword [esp + 0x34]
call fcn.0044f860
mov ecx, edi
call fcn.0041b660
test ax, ax
pop edi
jne 0x49ba23
mov ecx, dword [esi + 0x90]
cmp ecx, 4
je 0x49ba23
mov eax, dword [esi + 0x94]
cmp eax, 2
je 0x49ba23
push eax
push ecx
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.0049a5e0
mov ecx, dword [esi + 0x94]
mov eax, dword [esi + 0x90]
lea eax, [ecx + eax*2]
lea edx, [eax + eax*2]
movzx eax, byte [esi + 0x74]
add edx, eax
mov eax, dword [esp + 0x10]
xor ecx, ecx
mov cx, word [esi + edx*2 + 0x118]
mov edx, dword [esp + 0x14]
add edx, 0x20
add eax, 0x10
push ecx
mov ecx, dword [esp + 0x28]
push edx
push eax
push ecx
mov ecx, 0x659458
call fcn.00449d00
pop ebx
mov eax, 1
pop esi
add esp, 0x18
ret 4
xor eax, eax
pop esi
add esp, 0x18
ret 4