Function at 0x4f35c0
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 0x4f3620
mov dword [esp + 0x10], ebp
jmp 0x4f36ab
test byte [eax + 0x24], 0x20
je 0x4f3631
mov edx, dword [eax + 8]
mov dword [esp + 0x10], edx
mov ebp, edx
jmp 0x4f36ab
push 0x48
lea eax, [esp + 0x40]
push 0
push eax
call fcn.00585e50
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 0x4f3699
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 0x4f36c3
mov dword [esp + 0x30], 0
jmp 0x4f36e4
movsx eax, dx
cdq
push edx
push eax
call fcn.004add90
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 0x4f3843
test byte [ecx + 0x2c], 0x20
jne 0x4f3843
mov ecx, dword [ecx]
mov edx, dword [ecx]
test dword [edx + 0x1c], 0x8000
je 0x4f3843
cmp dword [ebx + 0x44], 0
jne 0x4f3843
mov ecx, dword [ebx + 0x28]
test cl, 1
jne 0x4f3843
test byte [eax + 0x24], 0x20
jne 0x4f3843
test cl, 0x28
jne 0x4f3843
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 0x4f382e
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
and eax, dword [edi + 0x20]
and ecx, dword [edi + 0x24]
or eax, ecx
jne 0x4f3817
push eax
push eax
mov eax, dword [esp + 0x1c]
mov ecx, edi
call fcn.004ca170
add esp, 8
test eax, eax
je 0x4f3817
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 0x4f37bd
test byte [edx + 0x24], 2
jne 0x4f37bd
add eax, 0x1c
jmp 0x4f37c0
add eax, 0xfffffff6
mov word [esi + 0x12], ax
test ax, ax
jge 0x4f37cf
xor eax, eax
mov word [esi + 0x12], ax
mov edx, 0x2b
mov eax, edx
mov word [esi + 0x16], dx
call fcn.004add40
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.004c2e80
add esp, 4
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x20]
add edi, 0x30
test eax, eax
je 0x4f3748
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret
test eax, eax
jne 0x4f3b64
mov edi, dword [esp + 0x88]
mov ebx, dword [esp + 0x14]
jmp 0x4f3854
mov eax, dword [esp + 0x20]
jmp 0x4f3854
mov ebp, dword [esp + 0x10]
test ebp, ebp
je 0x4f3b64
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x4f387d
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [ebx + 0x2c]
push edx
push eax
call fcn.004e0220
add esp, 0xc
test eax, eax
je 0x4f3b3d
test dword [ebp + 0x38], 0x100
jne 0x4f3b3d
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.004e0100
add esp, 0xc
cmp dword [ebp + 0x2c], 0
mov dword [esp + 0x38], eax
jg 0x4f3928
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.004b9d20
push esi
mov ecx, edi
call fcn.004c2e80
add esp, 0x10
mov word [esi + 0x16], bx
test eax, eax
jne 0x4f3b64
jmp 0x4f3b0c
test byte [ebp + 0x38], 0x20
je 0x4f393b
xor ecx, ecx
mov dword [esi + 0x24], 0x240
xor edi, edi
jmp 0x4f395e
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 0x4f395b
mov edx, 0x200
mov dword [esi + 0x24], edx
test eax, eax
jne 0x4f39c6
mov edx, dword [esp + 0x18]
test byte [edx + 0x24], 0x20
jne 0x4f39c6
cmp dword [ebp + 0x24], eax
jne 0x4f39c6
mov eax, ecx
or eax, edi
jne 0x4f3b05
test byte [ebp + 0x38], 4
jne 0x4f3b05
mov dx, word [ebp + 0x30]
mov eax, dword [esp + 0x18]
cmp dx, word [eax + 0x2e]
jge 0x4f3b05
mov edx, dword [esp + 0x1c]
test byte [edx + 0x2c], 4
jne 0x4f3b05
cmp dword [0x633cc0], 0
je 0x4f3b05
mov eax, edx
mov edx, dword [eax]
mov eax, dword [edx]
test byte [eax + 0x44], 0x20
jne 0x4f3b05
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 0x4f3add
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 0x4f3a70
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.004c1970
add esp, 4
test eax, eax
je 0x4f3a70
movzx eax, word [edi + 8]
test ax, ax
jg 0x4f3a4f
add ebp, eax
jmp 0x4f3a59
dec ebp
test byte [edi + 0xc], 0x82
je 0x4f3a59
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 0x4f3a20
movzx ecx, word [esi + 0x14]
cmp cx, bp
jl 0x4f3aaa
movsx edx, bp
movsx eax, cx
lea edi, [edx + 0x31]
cmp eax, edi
jle 0x4f3a8b
movzx eax, cx
jmp 0x4f3ad9
lea edi, [edx + 0x1f]
cmp eax, edi
jle 0x4f3a98
inc ecx
movzx eax, cx
jmp 0x4f3ad9
sub eax, edx
movzx dx, byte [eax + 0x5eb898]
add dx, cx
movzx eax, dx
jmp 0x4f3ad9
movsx ecx, cx
movsx eax, bp
lea edx, [ecx + 0x31]
cmp eax, edx
jle 0x4f3abc
movzx eax, bp
jmp 0x4f3ad9
lea edx, [ecx + 0x1f]
cmp eax, edx
jle 0x4f3ac9
inc ebp
movzx eax, bp
jmp 0x4f3ad9
sub eax, ecx
movzx ax, byte [eax + 0x5eb898]
add ax, bp
movzx eax, ax
mov word [esi + 0x14], ax
mov ecx, dword [esp + 0x24]
push ebx
push esi
push ecx
call fcn.004b9d20
mov ecx, dword [esp + 0x94]
push esi
call fcn.004c2e80
add esp, 0x10
mov word [esi + 0x16], bx
test eax, eax
jne 0x4f3b64
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.004f2eb0
mov ebx, dword [esp + 0x24]
add esp, 0x10
cmp dword [edi + 0x14], 1
mov dword [esp + 0x20], eax
jne 0x4f3b3d
mov eax, dword [esp + 0x18]
or dword [eax + 0x24], 0x100
cmp dword [ebx + 0x44], 0
je 0x4f3b4d
mov dword [esp + 0x10], 0
jmp 0x4f3b54
mov eax, dword [ebp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
inc dword [esp + 0x28]
test eax, eax
je 0x4f3850
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x74
ret