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

Disassembly:
sub esp, 0x68
push ebx
push ebp
mov ebp, dword [esp + 0x74]
mov ecx, dword [ebp]
push esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x34], 0xffffffff
movzx eax, byte [esi + 0x10]
mov edx, dword [ecx + 4]
lea eax, [eax + eax*4]
shl eax, 4
mov ebx, dword [eax + edx + 0x54]
push edi
lea edi, [eax + edx + 8]
mov eax, dword [edi + 0x10]
mov edx, dword [ebp + 4]
mov dword [esp + 0x10], 0
mov dword [esp + 0x24], 1
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], edx
test ebx, ebx
jne 0x49f887
test byte [eax + 0x2a], 0x20
je 0x49f813
mov ebx, dword [eax + 8]
jmp 0x49f887
push 0x38
lea eax, [esp + 0x44]
push 0
push eax
call fcn.0050e6a0
mov ecx, 1
mov word [esp + 0x7a], cx
mov edx, ecx
lea eax, [esp + 0x44]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x34]
mov dword [esp + 0x54], ecx
mov word [esp + 0x7c], dx
mov byte [esp + 0x7e], 5
mov dword [esp + 0x58], eax
mov dx, word [eax + 0x28]
mov word [esp + 0x78], dx
mov ax, word [eax + 0x26]
xor ecx, ecx
add esp, 0xc
mov word [esp + 0x28], ax
mov word [esp + 0x2a], cx
test byte [edi + 0x28], 1
jne 0x49f87b
mov edx, dword [edi + 0x10]
mov eax, dword [edx + 8]
mov dword [esp + 0x54], eax
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
lea ebx, [esp + 0x40]
movzx edx, word [eax + 0x26]
cmp dx, 0xa
mov dword [esp + 0x3c], edx
jg 0x49f89f
mov dword [esp + 0x2c], 0
jmp 0x49f8c0
movsx eax, dx
cdq
push edx
push eax
call fcn.0043f370
add esp, 8
sub ax, 0x21
movzx ecx, ax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x1c]
cmp dword [ebp + 0x10], 0
jne 0x49fa0c
test byte [ecx + 0x22], 0x80
jne 0x49fa0c
mov edx, dword [ecx]
mov ecx, dword [edx]
test dword [ecx + 0x18], 0x100000
je 0x49fa0c
cmp dword [edi + 0x4c], 0
jne 0x49fa0c
mov ecx, dword [edi + 0x28]
test cl, 1
jne 0x49fa0c
test byte [eax + 0x2a], 0x20
jne 0x49fa0c
test cl, 0xa
jne 0x49fa0c
mov eax, dword [esp + 0x20]
mov edi, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
lea edx, [eax + eax*2]
shl edx, 4
add edx, edi
mov dword [esp + 0x30], edx
cmp edi, edx
jae 0x49f9fd
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
and eax, dword [edi + 0x20]
and ecx, dword [edi + 0x24]
or eax, ecx
jne 0x49f9e3
push eax
push eax
mov eax, dword [esp + 0x20]
mov ecx, edi
call fcn.0049db10
add esp, 8
test eax, eax
je 0x49f9df
mov edx, 1
xor eax, eax
mov ecx, edx
mov word [esi + 0x18], dx
mov edx, dword [esi + 0x30]
mov word [esi + 0x2a], ax
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x3c]
mov word [esi + 0x28], cx
mov ecx, dword [esp + 0x2c]
mov dword [edx], edi
mov edx, dword [esp + 0x14]
lea eax, [ecx + eax + 4]
mov word [esi + 0x12], ax
cmp dword [edx + 0xc], 0
jne 0x49f99c
test byte [edx + 0x2a], 2
jne 0x49f99c
add eax, 0x18
mov word [esi + 0x12], ax
mov edx, 0x2b
mov eax, edx
mov word [esi + 0x16], dx
call fcn.0043f320
mov word [esi + 0x14], ax
mov dword [esi + 0x24], 0x4000
mov ecx, dword [edi + 0x24]
mov eax, dword [edi + 0x20]
or ecx, dword [esp + 0x84]
or eax, dword [esp + 0x80]
mov dword [esi + 4], ecx
push esi
mov ecx, ebp
mov dword [esi], eax
call fcn.0049ee50
add esp, 4
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x30]
add edi, 0x30
cmp dword [esp + 0x10], 0
je 0x49f924
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret
cmp dword [esp + 0x10], 0
jne 0x49fbfd
mov edi, dword [esp + 0x18]
test ebx, ebx
je 0x49fbfd
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x49fa35
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [edi + 0x30]
push edx
push eax
call fcn.0049f750
add esp, 0xc
test eax, eax
je 0x49fbeb
mov ecx, dword [ebx + 8]
movzx edi, word [ecx]
xor ecx, ecx
xor eax, eax
xor edx, edx
mov word [esi + 0x28], cx
mov byte [esi + 0x11], cl
mov ecx, dword [esp + 0x84]
mov word [esi + 0x2a], ax
mov eax, dword [esp + 0x80]
mov word [esi + 0x18], dx
mov word [esi + 0x12], dx
mov edx, dword [esp + 0x18]
mov dword [esi + 4], ecx
mov dword [esi], eax
mov word [esi + 0x16], di
mov dword [esi + 0x1c], ebx
mov eax, dword [edx + 0x30]
push eax
push ebx
mov ecx, ebp
call fcn.0049f660
add esp, 8
cmp dword [ebx + 0x28], 0
mov dword [esp + 0x3c], eax
jg 0x49facf
mov edx, dword [esp + 0x20]
neg eax
sbb al, al
and al, byte [esp + 0x24]
push edi
lea ecx, [edi + 0x10]
push esi
push edx
mov dword [esi + 0x24], 0x100
mov byte [esi + 0x11], al
mov word [esi + 0x14], cx
call fcn.0049ef50
add esp, 0xc
push esi
mov ecx, ebp
call fcn.0049ee50
add esp, 4
mov word [esi + 0x16], di
test eax, eax
jne 0x49fc01
jmp 0x49fbd0
test byte [ebx + 0x34], 0x20
je 0x49fae6
xor ebp, ebp
xor edx, edx
mov dword [esi + 0x24], 0x240
mov dword [esp + 0x34], edx
jmp 0x49fb14
mov eax, ebx
call fcn.0049f710
mov ebp, eax
mov eax, dword [esp + 0x18]
not ebp
and ebp, dword [eax + 0x40]
not edx
and edx, dword [eax + 0x44]
mov eax, ebp
or eax, edx
mov dword [esp + 0x34], edx
mov eax, 0x240
je 0x49fb11
mov eax, 0x200
mov dword [esi + 0x24], eax
mov eax, dword [esp + 0x3c]
test eax, eax
jne 0x49fb6a
mov ecx, dword [esp + 0x14]
test byte [ecx + 0x2a], 0x20
jne 0x49fb6a
mov ecx, ebp
or ecx, edx
jne 0x49fbcc
test byte [ebx + 0x34], 4
jne 0x49fbcc
mov dx, word [ebx + 0x2c]
mov ecx, dword [esp + 0x14]
cmp dx, word [ecx + 0x28]
jge 0x49fbcc
mov edx, dword [esp + 0x1c]
test byte [edx + 0x22], 4
jne 0x49fbcc
cmp dword [0x55d8d8], eax
je 0x49fbcc
mov ecx, edx
mov edx, dword [ecx]
mov ecx, dword [edx]
test byte [ecx + 0x3c], 0x40
jne 0x49fbcc
mov edx, dword [esp + 0x14]
neg eax
sbb al, al
and al, byte [esp + 0x24]
mov byte [esi + 0x11], al
movsx ecx, word [ebx + 0x2c]
mov eax, ecx
shl eax, 4
sub eax, ecx
movsx ecx, word [edx + 0x28]
cdq
idiv ecx
or ebp, dword [esp + 0x34]
lea ecx, [eax + edi + 1]
mov word [esi + 0x14], cx
je 0x49fba5
lea eax, [edi + 0x10]
call fcn.0043f320
mov word [esi + 0x14], ax
mov edx, dword [esp + 0x20]
push edi
push esi
push edx
call fcn.0049ef50
mov ecx, dword [esp + 0x88]
add esp, 0xc
push esi
call fcn.0049ee50
add esp, 4
mov word [esi + 0x16], di
test eax, eax
jne 0x49fc01
mov ebp, dword [esp + 0x7c]
mov edi, dword [esp + 0x18]
push 0
push ebx
push edi
push ebp
call fcn.0049f0a0
add esp, 0x10
cmp dword [edi + 0x4c], 0
mov dword [esp + 0x10], eax
jne 0x49fbfd
inc dword [esp + 0x24]
cmp dword [esp + 0x10], 0
mov ebx, dword [ebx + 0x14]
je 0x49fa0c
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x68
ret