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

Disassembly:
sub esp, 0x74
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x88]
mov esi, dword [edi + 0xc]
mov ecx, dword [edi]
mov dword [esp + 0x34], 0xffffffff
movzx eax, byte [esi + 0x10]
mov edx, dword [ecx + 4]
lea eax, [eax + eax*8]
mov ebp, dword [edx + eax*8 + 0x4c]
lea ebx, [edx + eax*8 + 8]
mov eax, dword [ebx + 0x10]
mov edx, dword [edi + 4]
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 1
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], edx
test ebp, ebp
je 0x4f37e0
mov dword [esp + 0x10], ebp
jmp 0x4f386b
test byte [eax + 0x24], 0x20
je 0x4f37f1
mov edx, dword [eax + 8]
mov dword [esp + 0x10], edx
mov ebp, edx
jmp 0x4f386b
push 0x48
lea eax, [esp + 0x40]
push 0
push eax
call fcn.00586030
mov ecx, 1
mov word [esp + 0x7a], cx
mov edx, ecx
lea eax, [esp + 0x40]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], ecx
mov word [esp + 0x7c], dx
mov byte [esp + 0x7e], 5
mov dword [esp + 0x54], eax
mov dx, word [eax + 0x2e]
mov word [esp + 0x78], dx
mov ax, word [eax + 0x2c]
xor ecx, ecx
add esp, 0xc
mov word [esp + 0x2c], ax
mov word [esp + 0x2e], cx
test byte [ebx + 0x28], 1
jne 0x4f3859
mov edx, dword [ebx + 0x10]
mov eax, dword [edx + 8]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x3c]
mov dword [esp + 0x10], ecx
mov ebp, ecx
mov ecx, dword [esp + 0x1c]
movzx edx, word [eax + 0x2c]
cmp dx, 0xa
mov dword [esp + 0x38], edx
jg 0x4f3883
mov dword [esp + 0x30], 0
jmp 0x4f38a4
movsx eax, dx
cdq
push edx
push eax
call fcn.004adf50
mov ecx, dword [esp + 0x24]
add esp, 8
sub ax, 0x21
movzx edx, ax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x30], edx
cmp dword [edi + 0x10], 0
jne 0x4f3a03
test byte [ecx + 0x2c], 0x20
jne 0x4f3a03
mov ecx, dword [ecx]
mov edx, dword [ecx]
test dword [edx + 0x1c], 0x8000
je 0x4f3a03
cmp dword [ebx + 0x44], 0
jne 0x4f3a03
mov ecx, dword [ebx + 0x28]
test cl, 1
jne 0x4f3a03
test byte [eax + 0x24], 0x20
jne 0x4f3a03
test cl, 0x28
jne 0x4f3a03
mov eax, dword [esp + 0x24]
mov edi, dword [eax + 0x14]
mov eax, dword [eax + 0xc]
lea ebx, [eax + eax*2]
mov eax, dword [esp + 0x20]
shl ebx, 4
add ebx, edi
cmp edi, ebx
jae 0x4f39ee
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
and eax, dword [edi + 0x20]
and ecx, dword [edi + 0x24]
or eax, ecx
jne 0x4f39d7
push eax
push eax
mov eax, dword [esp + 0x1c]
mov ecx, edi
call fcn.004ca330
add esp, 8
test eax, eax
je 0x4f39d7
mov eax, 1
xor ecx, ecx
mov edx, eax
mov word [esi + 0x18], ax
mov eax, dword [esi + 0x30]
mov word [esi + 0x28], dx
mov edx, dword [esp + 0x38]
mov word [esi + 0x2a], cx
mov dword [esi + 0x20], ecx
mov ecx, dword [esp + 0x30]
mov dword [eax], edi
lea eax, [ecx + edx]
mov edx, dword [esp + 0x18]
mov word [esi + 0x12], ax
cmp dword [edx + 0xc], 0
jne 0x4f397d
test byte [edx + 0x24], 2
jne 0x4f397d
add eax, 0x1c
jmp 0x4f3980
add eax, 0xfffffff6
mov word [esi + 0x12], ax
test ax, ax
jge 0x4f398f
xor eax, eax
mov word [esi + 0x12], ax
mov edx, 0x2b
mov eax, edx
mov word [esi + 0x16], dx
call fcn.004adf00
mov word [esi + 0x14], ax
mov dword [esi + 0x24], 0x4000
mov ecx, dword [edi + 0x24]
mov eax, dword [edi + 0x20]
or ecx, dword [esp + 0x90]
or eax, dword [esp + 0x8c]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x88]
push esi
mov dword [esi], eax
call fcn.004c3030
add esp, 4
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
add edi, 0x30
test eax, eax
je 0x4f3908
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret
test eax, eax
jne 0x4f3d24
mov edi, dword [esp + 0x88]
mov ebx, dword [esp + 0x14]
jmp 0x4f3a14
mov eax, dword [esp + 0x20]
jmp 0x4f3a14
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x4f3d24
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x4f3a3d
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [ebx + 0x2c]
push edx
push eax
call fcn.004e03e0
add esp, 0xc
test eax, eax
je 0x4f3cfd
test dword [ebp + 0x38], 0x100
jne 0x4f3cfd
mov ecx, dword [ebp + 8]
movzx ebx, word [ecx]
xor edx, edx
xor eax, eax
xor ecx, ecx
mov word [esi + 0x18], dx
mov word [esi + 0x1a], ax
mov word [esi + 0x2a], dx
mov edx, dword [esp + 0x8c]
mov word [esi + 0x28], ax
mov eax, dword [esp + 0x90]
mov word [esi + 0x1c], cx
mov byte [esi + 0x11], cl
mov word [esi + 0x12], cx
mov ecx, dword [esp + 0x14]
mov dword [esi], edx
mov dword [esi + 4], eax
mov word [esi + 0x16], bx
mov dword [esi + 0x20], ebp
mov edx, dword [ecx + 0x2c]
push edx
push ebp
push edi
call fcn.004e02c0
add esp, 0xc
cmp dword [ebp + 0x2c], 0
mov dword [esp + 0x38], eax
jg 0x4f3ae8
mov ecx, dword [esp + 0x24]
neg eax
sbb al, al
and al, byte [esp + 0x28]
push ebx
mov byte [esi + 0x11], al
lea eax, [ebx + 0x10]
push esi
push ecx
mov dword [esi + 0x24], 0x100
mov word [esi + 0x14], ax
call fcn.004b9ee0
push esi
mov ecx, edi
call fcn.004c3030
add esp, 0x10
mov word [esi + 0x16], bx
test eax, eax
jne 0x4f3d24
jmp 0x4f3ccc
test byte [ebp + 0x38], 0x20
je 0x4f3afb
xor ecx, ecx
mov dword [esi + 0x24], 0x240
xor edi, edi
jmp 0x4f3b1e
mov edx, dword [esp + 0x14]
mov ecx, dword [ebp + 0x40]
and ecx, dword [edx + 0x38]
mov edi, dword [ebp + 0x44]
and edi, dword [edx + 0x3c]
mov edx, ecx
or edx, edi
mov edx, 0x240
je 0x4f3b1b
mov edx, 0x200
mov dword [esi + 0x24], edx
test eax, eax
jne 0x4f3b86
mov edx, dword [esp + 0x18]
test byte [edx + 0x24], 0x20
jne 0x4f3b86
cmp dword [ebp + 0x24], eax
jne 0x4f3b86
mov eax, ecx
or eax, edi
jne 0x4f3cc5
test byte [ebp + 0x38], 4
jne 0x4f3cc5
mov dx, word [ebp + 0x30]
mov eax, dword [esp + 0x18]
cmp dx, word [eax + 0x2e]
jge 0x4f3cc5
mov edx, dword [esp + 0x1c]
test byte [edx + 0x2c], 4
jne 0x4f3cc5
cmp dword [0x633cc0], 0
je 0x4f3cc5
mov eax, edx
mov edx, dword [eax]
mov eax, dword [edx]
test byte [eax + 0x44], 0x20
jne 0x4f3cc5
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x10]
neg eax
sbb al, al
and al, byte [esp + 0x28]
mov byte [esi + 0x11], al
movsx edx, word [edx + 0x30]
mov eax, edx
shl eax, 4
sub eax, edx
mov edx, dword [esp + 0x18]
movsx ebp, word [edx + 0x2e]
cdq
idiv ebp
or ecx, edi
lea eax, [eax + ebx + 1]
mov word [esi + 0x14], ax
je 0x4f3c9d
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x2c]
lea ecx, [ebx + 0x10]
movzx ebp, cx
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x38], eax
xor eax, eax
cmp dword [ecx + 0x5c], eax
mov dword [esp + 0x30], eax
jle 0x4f3c30
mov dword [esp + 0x20], eax
nop
mov edx, dword [esp + 0x1c]
mov edi, dword [edx + 0x64]
add edi, dword [esp + 0x20]
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x10]
mov ecx, dword [edi]
push eax
call fcn.004c1b20
add esp, 4
test eax, eax
je 0x4f3c30
movzx eax, word [edi + 8]
test ax, ax
jg 0x4f3c0f
add ebp, eax
jmp 0x4f3c19
dec ebp
test byte [edi + 0xc], 0x82
je 0x4f3c19
sub ebp, 0x13
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
add dword [esp + 0x20], 0x30
inc eax
cmp eax, dword [ecx + 0x5c]
mov dword [esp + 0x30], eax
jl 0x4f3be0
movzx ecx, word [esi + 0x14]
cmp cx, bp
jl 0x4f3c6a
movsx edx, bp
movsx eax, cx
lea edi, [edx + 0x31]
cmp eax, edi
jle 0x4f3c4b
movzx eax, cx
jmp 0x4f3c99
lea edi, [edx + 0x1f]
cmp eax, edi
jle 0x4f3c58
inc ecx
movzx eax, cx
jmp 0x4f3c99
sub eax, edx
movzx dx, byte [eax + 0x5eb7d8]
add dx, cx
movzx eax, dx
jmp 0x4f3c99
movsx ecx, cx
movsx eax, bp
lea edx, [ecx + 0x31]
cmp eax, edx
jle 0x4f3c7c
movzx eax, bp
jmp 0x4f3c99
lea edx, [ecx + 0x1f]
cmp eax, edx
jle 0x4f3c89
inc ebp
movzx eax, bp
jmp 0x4f3c99
sub eax, ecx
movzx ax, byte [eax + 0x5eb7d8]
add ax, bp
movzx eax, ax
mov word [esi + 0x14], ax
mov ecx, dword [esp + 0x24]
push ebx
push esi
push ecx
call fcn.004b9ee0
mov ecx, dword [esp + 0x94]
push esi
call fcn.004c3030
add esp, 0x10
mov word [esi + 0x16], bx
test eax, eax
jne 0x4f3d24
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 0x88]
mov edx, dword [esp + 0x14]
push 0
push ebp
push edx
push edi
mov dword [edi + 0x14], 0
call fcn.004f3070
mov ebx, dword [esp + 0x24]
add esp, 0x10
cmp dword [edi + 0x14], 1
mov dword [esp + 0x20], eax
jne 0x4f3cfd
mov eax, dword [esp + 0x18]
or dword [eax + 0x24], 0x100
cmp dword [ebx + 0x44], 0
je 0x4f3d0d
mov dword [esp + 0x10], 0
jmp 0x4f3d14
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
inc dword [esp + 0x28]
test eax, eax
je 0x4f3a10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret