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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x60
mov eax, dword [ebp + 0xc]
mov ebx, 0
mov dword [esp + 0xc], edx
mov dword [esp + 8], ecx
mov eax, dword [eax + 4]
test eax, eax
jle 0x4f3d42
mov ebx, eax
mov dword [esp + 0x10], 0
nop word cs:[eax + eax]
nop dword [eax + eax]
mov dword [esp + 4], ebx
dec ebx
test eax, eax
mov esi, 0
jle 0x4f356f
mov ecx, dword [ebp + 0xc]
mov edx, 1
mov ecx, dword [ecx]
nop dword [eax + eax]
mov esi, dword [ecx + edx*4 - 4]
cmp dword [esi], ebx
je 0x4f356f
cmp edx, eax
lea edx, [edx + 1]
jl 0x4f3560
cmp dword [esi + 0x28], 0
je 0x4f3660
mov eax, dword [esi]
mov edi, dword [esi + 0x40]
mov esi, dword [esi + 0x3c]
mov ecx, dword [esp + 8]
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x40], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x58], 0
mov edx, 0x20
mov dword [esp + 0x24], eax
push 0
lea eax, [esp + 0x5c]
push eax
call fcn.004dab00
add esp, 8
mov ecx, eax
test eax, eax
je 0x4f36e0
mov esi, dword [esp + 0x28]
mov edi, ecx
test esi, esi
je 0x4f372b
cmp dword [0x51d1a8], 0
je 0x4f3721
mov eax, dword [0x51e858]
test eax, eax
je 0x4f361d
push eax
call dword [0x51d1f8]
add esp, 4
push esi
call dword [0x51d1d4]
add esp, 4
sub dword [0x51e800], eax
dec dword [0x51e824]
push esi
call dword [0x51d1cc]
add esp, 4
mov eax, dword [0x51e858]
test eax, eax
je 0x4f372b
push eax
call dword [0x51d200]
jmp 0x4f3728
mov ecx, dword [esp + 8]
mov edx, esi
call fcn.004efcb0
mov edi, eax
test eax, eax
jne 0x4f3b40
mov esi, dword [esi]
mov ecx, dword [esp + 8]
mov dword [esp + 0x28], 0
mov edx, 0x1e
push 0
lea eax, [esp + 0x2c]
push eax
call fcn.004dab00
add esp, 8
mov edi, eax
test eax, eax
jne 0x4f3b40
mov edi, esi
mov esi, dword [esp + 0x28]
mov edx, 1
mov ecx, esi
call fcn.00428a90
test eax, eax
jne 0x4f3acd
mov ecx, dword [esi + 0x64]
test byte [ecx + 9], 0x24
je 0x4f3aa8
mov edx, dword [esp + 0xc]
push dword [ebp + 8]
call fcn.0044cb80
add esp, 4
jmp 0x4f3aba
mov dword [esp + 0x1c], esi
mov esi, dword [esp + 0x58]
mov edx, 1
mov dword [esp + 0x20], edi
mov ecx, esi
call fcn.00428a90
test eax, eax
jne 0x4f37c1
mov ecx, dword [esi + 0x64]
test byte [ecx + 9], 0x24
je 0x4f379c
mov edx, dword [esp + 0xc]
push dword [ebp + 8]
call fcn.0044cb80
add esp, 4
jmp 0x4f37ae
push esi
call dword [0x51d1cc]
add esp, 4
mov esi, dword [esp + 0x40]
test esi, esi
je 0x4f378b
cmp dword [0x51d1a8], 0
je 0x4f3781
mov eax, dword [0x51e858]
test eax, eax
je 0x4f374f
push eax
call dword [0x51d1f8]
add esp, 4
push esi
call dword [0x51d1d4]
add esp, 4
sub dword [0x51e800], eax
dec dword [0x51e824]
push esi
call dword [0x51d1cc]
add esp, 4
mov eax, dword [0x51e858]
test eax, eax
je 0x4f378b
push eax
call dword [0x51d200]
jmp 0x4f3788
push esi
call dword [0x51d1cc]
add esp, 4
inc dword [esp + 0x10]
test edi, edi
je 0x4f3b51
jmp 0x4f3d36
mov eax, dword [esp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov word [ecx + 8], 4
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4f37c1
push eax
call dword [0x51d200]
add esp, 4
mov ecx, esi
mov edx, 2
call fcn.00428a90
test eax, eax
jne 0x4f3819
mov ecx, dword [esi + 0x64]
test byte [ecx + 0x31], 0x24
je 0x4f37f1
mov edx, dword [esp + 0x24]
add ecx, 0x28
mov eax, edx
sar eax, 0x1f
push eax
call fcn.0044cb80
add esp, 4
jmp 0x4f3806
mov edx, dword [esp + 0x24]
mov eax, edx
mov dword [ecx + 0x28], edx
sar eax, 0x1f
mov dword [ecx + 0x2c], eax
mov word [ecx + 0x30], 4
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4f3819
push eax
call dword [0x51d200]
add esp, 4
push esi
call fcn.00426830
add esp, 4
cmp eax, 0x64
jne 0x4f3a2c
push 4
push esi
call fcn.00427d30
add esp, 8
mov dword [esp], eax
push 4
push esi
call fcn.00427de0
add esp, 8
mov edi, eax
push 1
push esi
call fcn.00428140
add esp, 8
mov ecx, dword [esp]
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x38]
mov dword [esp + 0x50], edx
mov edx, edi
push eax
push dword [esp + 0x20]
push dword [esp + 0x28]
lea eax, [esp + 0x34]
push eax
call fcn.004f45e0
add esp, 0x10
mov edi, eax
push esi
call fcn.00425680
add esp, 4
mov ecx, edi
test edi, edi
jne 0x4f35ef
test eax, eax
mov dword [esp], 0
jne 0x4f3a3c
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov edi, 0
mov esi, ecx
or esi, edx
je 0x4f3a3e
nop word cs:[eax + eax]
nop dword [eax]
mov esi, dword [esp + 8]
mov edi, edx
mov edx, ecx
lea eax, [esp + 0x54]
mov dword [esp + 0x14], 0
mov dword [esp + 0x54], 0
mov dword [esp], edx
mov ecx, esi
push eax
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x20], edi
push edi
call fcn.004dacf0
add esp, 0xc
mov edi, eax
test eax, eax
jne 0x4f3940
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x54]
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x20]
push dword [esp + 0x28]
lea eax, [esp + 0x4c]
push eax
call fcn.004f45e0
add esp, 0x10
mov edi, eax
test eax, eax
jne 0x4f3940
mov edx, dword [esp]
mov ecx, esi
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x20]
call fcn.004ef8b0
add esp, 0xc
mov edi, eax
nop dword [eax]
mov esi, dword [esp + 0x14]
test esi, esi
je 0x4f39aa
cmp dword [0x51d1a8], 0
je 0x4f39a0
mov eax, dword [0x51e858]
test eax, eax
je 0x4f3964
push eax
call dword [0x51d1f8]
add esp, 4
push esi
call dword [0x51d1d4]
add esp, 4
sub dword [0x51e800], eax
dec dword [0x51e824]
push esi
call dword [0x51d1cc]
add esp, 4
mov eax, dword [0x51e858]
test eax, eax
je 0x4f39aa
push eax
call dword [0x51d200]
jmp 0x4f39a7
push esi
call dword [0x51d1cc]
add esp, 4
test edi, edi
jne 0x4f39c0
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x3c]
mov eax, ecx
or eax, edx
jne 0x4f38c0
mov ecx, edi
test edi, edi
mov edi, dword [esp + 0x18]
jne 0x4f35ef
mov ecx, dword [esp + 8]
mov dword [esp + 0x14], 0
mov edx, 0x11
push 0
lea eax, [esp + 0x18]
push eax
call fcn.004dab00
add esp, 8
test eax, eax
jne 0x4f3a3e
mov esi, dword [esp + 0x14]
mov edx, 1
mov ecx, esi
call fcn.00428a90
test eax, eax
jne 0x4f3cb8
mov ecx, dword [esi + 0x64]
test byte [ecx + 9], 0x24
je 0x4f3c92
mov edx, dword [esp + 0x4c]
push dword [esp + 0x50]
call fcn.0044cb80
add esp, 4
jmp 0x4f3ca5
mov dword [esp], 0
push esi
call fcn.00425680
add esp, 4
xor edi, edi
test eax, eax
mov ecx, eax
jne 0x4f35ef
mov ecx, dword [esp + 8]
mov dword [esp + 0x14], 0
mov edx, 0x21
push 0
lea eax, [esp + 0x18]
push eax
call fcn.004dab00
add esp, 8
mov esi, eax
test eax, eax
jne 0x4f3c8b
mov esi, dword [esp + 0x14]
mov edx, 1
mov ecx, esi
call fcn.00428a90
test eax, eax
jne 0x4f3b88
mov ecx, dword [esi + 0x64]
test byte [ecx + 9], 0x24
je 0x4f3b67
mov edx, dword [esp]
push edi
call fcn.0044cb80
add esp, 4
jmp 0x4f3b75
mov eax, dword [esp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov word [ecx + 8], 4
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4f3acd
push eax
call dword [0x51d200]
add esp, 4
mov ecx, esi
mov edx, 2
call fcn.00428a90
test eax, eax
jne 0x4f3b1d
mov ecx, dword [esi + 0x64]
test byte [ecx + 0x31], 0x24
je 0x4f3afb
mov eax, edi
add ecx, 0x28
mov edx, edi
sar eax, 0x1f
push eax
call fcn.0044cb80
add esp, 4
jmp 0x4f3b0a
mov dword [ecx + 0x28], edi
sar edi, 0x1f
mov dword [ecx + 0x2c], edi
mov word [ecx + 0x30], 4
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4f3b1d
push eax
call dword [0x51d200]
add esp, 4
push esi
call fcn.00426830
add esp, 4
push esi
call fcn.00425680
add esp, 4
mov edi, eax
nop word cs:[eax + eax]
nop dword [eax + eax]
mov eax, dword [ebp + 0x10]
mov dword [eax], 0
test edi, edi
jne 0x4f3d36
cmp dword [esp + 4], 2
jl 0x4f3d36
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
jmp 0x4f3540
mov eax, dword [esp]
mov dword [ecx + 4], edi
mov dword [ecx], eax
mov word [ecx + 8], 4
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4f3b88
push eax
call dword [0x51d200]
add esp, 4
mov ecx, esi
mov edx, 2
push 0
push 0
push dword [esp + 0x34]
push dword [esp + 0x34]
call fcn.004288a0
add esp, 0x10
mov ecx, esi
mov edx, 3
call fcn.00428a90
test eax, eax
jne 0x4f3bf6
mov ecx, dword [esi + 0x64]
test byte [ecx + 0x59], 0x24
je 0x4f3bd0
mov edx, dword [esp + 0xc]
add ecx, 0x50
push dword [ebp + 8]
call fcn.0044cb80
add esp, 4
jmp 0x4f3be3
mov eax, dword [esp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ecx + 0x50], eax
mov dword [ecx + 0x54], edx
mov word [ecx + 0x58], 4
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4f3bf6
push eax
call dword [0x51d200]
add esp, 4
mov ecx, esi
mov edx, 4
call fcn.00428a90
test eax, eax
jne 0x4f3c52
mov ecx, dword [esi + 0x64]
test byte [ecx + 0x81], 0x24
je 0x4f3c29
mov edx, dword [esp + 0x24]
add ecx, 0x78
mov eax, edx
sar eax, 0x1f
push eax
call fcn.0044cb80
add esp, 4
jmp 0x4f3c3f
mov eax, dword [esp + 0x24]
mov dword [ecx + 0x78], eax
sar eax, 0x1f
mov dword [ecx + 0x7c], eax
mov word [ecx + 0x80], 4
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4f3c52
push eax
call dword [0x51d200]
add esp, 4
push esi
call fcn.00426830
add esp, 4
push esi
call fcn.00425680
add esp, 4
mov edi, esi
mov edx, 2
mov esi, eax
mov ecx, edi
call fcn.00428a90
test eax, eax
jne 0x4f3c8b
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4f3c8b
push eax
call dword [0x51d200]
add esp, 4
mov ecx, esi
jmp 0x4f35ef
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x50]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov word [ecx + 8], 4
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4f3cb8
push eax
call dword [0x51d200]
add esp, 4
mov eax, dword [esp]
mov edi, dword [esp + 0x18]
mov ecx, esi
mov edx, 2
add eax, 0xffffffff
mov dword [esp + 0x20], eax
adc edi, 0xffffffff
call fcn.00428a90
test eax, eax
jne 0x4f3d1b
mov ecx, dword [esi + 0x64]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x1c], esi
test byte [ecx + 0x31], 0x24
je 0x4f3cf8
add ecx, 0x28
push edi
call fcn.0044cb80
add esp, 4
jmp 0x4f3d04
mov dword [ecx + 0x28], edx
mov dword [ecx + 0x2c], edi
mov word [ecx + 0x30], 4
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4f3d1b
push eax
call dword [0x51d200]
add esp, 4
push esi
call fcn.00426830
add esp, 4
push esi
call fcn.00425680
add esp, 4
mov edi, dword [esp + 0x18]
jmp 0x4f3a3e
mov ebx, dword [esp + 0x10]
test edi, edi
jne 0x4f40c9
mov eax, dword [ebp + 0xc]
cmp ebx, dword [eax + 4]
jne 0x4f3d51
xor edi, edi
jmp 0x4f40c9
mov ecx, dword [esp + 8]
lea eax, [esp + 0x28]
mov dword [esp + 0x28], 0
mov dword [esp + 0x40], 0
mov edx, 0x23
push 0
push eax
call fcn.004dab00
add esp, 8
test eax, eax
je 0x4f3d86
mov edi, eax
xor esi, esi
jmp 0x4f3eb8
mov edi, dword [esp + 0x28]
mov edx, 1
mov ecx, edi
call fcn.00428a90
test eax, eax
jne 0x4f3dd9
mov ecx, dword [edi + 0x64]
test byte [ecx + 9], 0x24
je 0x4f3db4
mov edx, dword [esp + 0xc]
push dword [ebp + 8]
call fcn.0044cb80
add esp, 4
jmp 0x4f3dc6
mov eax, dword [esp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov word [ecx + 8], 4
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4f3dd9
push eax
call dword [0x51d200]
add esp, 4
mov dword [esp + 0x10], ebx
push edi
call fcn.00426830
add esp, 4
cmp eax, 0x64
jne 0x4f3e72
xor ebx, ebx
xor esi, esi
mov dword [esp + 4], 0
jmp 0x4f3e2e
mov esi, dword [esp + 4]
push 0
push edi
call fcn.00428070
add esp, 8
mov edi, dword [esp]
mov dword [esp + 4], esi
mov dword [esi + edi*4], eax
mov esi, edi
mov edi, dword [esp + 0x28]
inc esi
push edi
call fcn.00426830
add esp, 4
cmp eax, 0x64
jne 0x4f3e7c
cmp esi, ebx
mov dword [esp], esi
jl 0x4f3e00
call fcn.0041acf0
test eax, eax
jne 0x4f3f2c
mov esi, dword [esp + 4]
lea edx, [ebx*4 + 0x40]
mov eax, 0
test edx, edx
cmovs edx, eax
mov ecx, esi
push 0
call fcn.0041c2d0
add esp, 4
test eax, eax
je 0x4f3f3f
add ebx, 0x10
mov esi, eax
jmp 0x4f3e04
mov dword [esp + 4], 0
xor esi, esi
push edi
call fcn.00425680
add esp, 4
test eax, eax
jne 0x4f3eae
mov dword [esp], esi
mov esi, dword [esp + 8]
lea eax, [esp + 0x40]
mov edx, 0x1f
mov ecx, esi
push 0
push eax
call fcn.004dab00
add esp, 8
test eax, eax
je 0x4f3f56
mov edi, eax
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 4]
mov eax, dword [esp + 8]
mov byte [eax + 0xf0], 1
add eax, 0xf0
test esi, esi
mov byte [eax], 0
je 0x4f40c9
cmp dword [0x51d1a8], 0
je 0x4f40bf
mov eax, dword [0x51e858]
test eax, eax
je 0x4f3ef3
push eax
call dword [0x51d1f8]
add esp, 4
push esi
call dword [0x51d1d4]
add esp, 4
sub dword [0x51e800], eax
dec dword [0x51e824]
push esi
call dword [0x51d1cc]
add esp, 4
mov eax, dword [0x51e858]
test eax, eax
je 0x4f40c9
push eax
call dword [0x51d200]
jmp 0x4f40c6
push edi
call fcn.00425680
add esp, 4
mov edi, 7
jmp 0x4f3eb0
push edi
call fcn.00425680
add esp, 4
mov ebx, dword [esp + 0x10]
mov edi, 7
jmp 0x4f3eb8
mov edi, dword [esp + 0x40]
mov edx, 2
mov ecx, edi
call fcn.00428a90
test eax, eax
jne 0x4f3fad
mov ecx, dword [edi + 0x64]
test byte [ecx + 0x31], 0x24
je 0x4f3f87
mov edx, dword [esp + 0xc]
add ecx, 0x28
push dword [ebp + 8]
call fcn.0044cb80
add esp, 4
jmp 0x4f3f9a
mov eax, dword [esp + 0xc]
mov edx, dword [ebp + 8]
mov dword [ecx + 0x28], eax
mov dword [ecx + 0x2c], edx
mov word [ecx + 0x30], 4
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4f3fad
push eax
call dword [0x51d200]
add esp, 4
mov byte [esi + 0xf0], 1
add esi, 0xf0
cmp dword [esp], 0
mov dword [esp + 8], esi
je 0x4f40d8
xor esi, esi
mov dword [esp + 0x18], edi
nop
mov eax, dword [esp + 4]
mov edi, 0
mov ebx, dword [eax + esi*4]
cmp esi, ebx
je 0x4f4095
mov edi, dword [esp + 0x18]
mov edx, 3
mov ecx, edi
call fcn.00428a90
test eax, eax
jne 0x4f4038
mov ecx, dword [edi + 0x64]
test byte [ecx + 0x59], 0x24
je 0x4f4016
mov eax, ebx
add ecx, 0x50
mov edx, ebx
sar eax, 0x1f
push eax
call fcn.0044cb80
add esp, 4
jmp 0x4f4025
mov dword [ecx + 0x50], ebx
sar ebx, 0x1f
mov dword [ecx + 0x54], ebx
mov word [ecx + 0x58], 4
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4f4038
push eax
call dword [0x51d200]
add esp, 4
mov ecx, edi
mov edx, 1
call fcn.00428a90
test eax, eax
jne 0x4f4081
mov ecx, dword [edi + 0x64]
test byte [ecx + 9], 0x24
je 0x4f405f
mov edx, esi
push 0
call fcn.0044cb80
add esp, 4
jmp 0x4f406e
mov dword [ecx], esi
mov dword [ecx + 4], 0
mov word [ecx + 8], 4
mov eax, dword [edi]
mov eax, dword [eax + 0xc]
test eax, eax
je 0x4f4081
push eax
call dword [0x51d200]
add esp, 4
push edi
call fcn.00426830
add esp, 4
push edi
call fcn.00425680
add esp, 4
mov edi, eax
inc esi
cmp esi, dword [esp]
jae 0x4f40a3
test edi, edi
je 0x4f3fd0
mov eax, dword [esp + 8]
mov ebx, dword [esp + 0x10]
mov esi, dword [esp + 4]
mov byte [eax], 0
cmp dword [0x51d1a8], 0
jne 0x4f3ee0
push esi
call dword [0x51d1cc]
add esp, 4
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov esi, dword [esp + 4]
xor edi, edi
jmp 0x4f3ec8