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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
lea eax, [esp - 0x10]
cmp eax, dword [ecx + 8]
jbe 0x4f3d2f
sub esp, 0x90
mov ecx, dword [esp + 0xa4]
cmp ecx, 2
jne 0x4f357f
mov edx, dword [esp + 0xa0]
cmp word [edx], 0x7069
je 0x4f35b5
jmp 0x4f3c92
cmp ecx, 3
jne 0x4f35f7
mov edx, dword [esp + 0xa0]
cmp byte [edx], 0x69
jg 0x4f35d4
movzx ebx, word [edx]
cmp bx, 0x7069
jne 0x4f35a5
cmp byte [edx + 2], 0x34
je 0x4f35b5
cmp bx, 0x7069
jne 0x4f3c92
cmp byte [edx + 2], 0x36
jne 0x4f3c92
mov ebx, dword [esp + 0xac]
test ebx, ebx
je 0x4f35c9
mov eax, dword [esp + 0xa8]
jmp 0x4f35cd
xor ebx, ebx
xor eax, eax
xor ebp, ebp
jmp 0x4f3701
cmp word [edx], 0x6374
jne 0x4f35e1
cmp byte [edx + 2], 0x70
je 0x4f3635
cmp word [edx], 0x6475
jne 0x4f3c92
cmp byte [edx + 2], 0x70
je 0x4f3635
jmp 0x4f3c92
cmp ecx, 4
jne 0x4f3c8b
mov edx, dword [esp + 0xa0]
cmp byte [edx], 0x74
jg 0x4f3621
cmp dword [edx], 0x34706374
je 0x4f3635
cmp dword [edx], 0x36706374
je 0x4f3635
jmp 0x4f3c92
cmp dword [edx], 0x34706475
je 0x4f3635
cmp dword [edx], 0x36706475
jne 0x4f3c92
mov ebx, dword [esp + 0xac]
test ebx, ebx
jne 0x4f364b
xor eax, eax
xor ebx, ebx
xor ebp, ebp
jmp 0x4f36fb
mov eax, dword [esp + 0xa8]
mov dword [esp], eax
mov dword [esp + 4], ebx
call fcn.004f2f20
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 8]
mov edi, dword [esp + 0xc]
test edx, edx
jne 0x4f3c55
mov dword [esp + 0x40], edi
mov dword [esp + 0x50], esi
mov edx, dword [esp + 0x94]
mov dword [esp], edx
mov ebx, dword [esp + 0x98]
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0x9c]
mov dword [esp + 8], ebp
mov esi, dword [esp + 0xa0]
mov dword [esp + 0xc], esi
mov edi, dword [esp + 0xa4]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
call fcn.004f5fb0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
test ecx, ecx
jne 0x4f3c1f
mov ecx, dword [esp + 0xa4]
mov edx, dword [esp + 0xa0]
mov ebx, dword [esp + 0x40]
mov ebp, dword [esp + 0x50]
mov esi, ebp
mov ebp, eax
mov eax, esi
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x64], 0
lea esi, [0x4f3d40]
mov dword [esp + 0x58], esi
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], ebp
test ebx, ebx
jne 0x4f39c0
lea edi, [esp + 0x68]
xor eax, eax
call fcn.0046395b
mov ecx, dword [esp + 0xa4]
cmp ecx, 2
jne 0x4f3762
cmp word [edx], 0x7069
je 0x4f379b
jmp 0x4f3cde
mov dword [esp + 0x34], ebp
cmp ecx, 3
jne 0x4f382c
cmp byte [edx], 0x69
jg 0x4f3805
movzx eax, word [edx]
cmp ax, 0x7069
jne 0x4f378b
cmp byte [edx + 2], 0x34
je 0x4f379b
cmp ax, 0x7069
jne 0x4f3cde
cmp byte [edx + 2], 0x36
jne 0x4f3cde
lea eax, [0x5ec8c0]
mov dword [esp], eax
call fcn.0040bd40
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov ecx, dword [0x7c78f0]
test ecx, ecx
jne 0x4f37cd
mov dword [edi], eax
jmp 0x4f37d2
call fcn.00463730
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov dword [edi + 0x10], ecx
mov ecx, dword [0x7c78f0]
test ecx, ecx
jne 0x4f37ec
mov dword [edi + 0xc], eax
jmp 0x4f37fa
lea ecx, [edi + 0xc]
mov edx, edi
mov edi, ecx
call fcn.00463730
mov edi, edx
lea eax, [0x662068]
jmp 0x4f3943
cmp word [edx], 0x6374
jne 0x4f3812
cmp byte [edx + 2], 0x70
je 0x4f3852
cmp word [edx], 0x6475
jne 0x4f3cde
cmp byte [edx + 2], 0x70
je 0x4f38d7
jmp 0x4f3cde
cmp ecx, 4
jne 0x4f3cde
cmp byte [edx], 0x74
jg 0x4f38c3
cmp dword [edx], 0x34706374
je 0x4f3852
cmp dword [edx], 0x36706374
jne 0x4f3cde
lea eax, [0x5f2240]
mov dword [esp], eax
call fcn.0040bd40
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov ecx, dword [0x7c78f0]
test ecx, ecx
jne 0x4f3884
mov dword [edi], eax
jmp 0x4f3889
call fcn.00463730
mov ecx, dword [esp + 0x34]
mov dword [edi + 0xc], ecx
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov dword [edi + 0x14], ecx
mov ecx, dword [0x7c78f0]
test ecx, ecx
jne 0x4f38aa
mov dword [edi + 0x10], eax
jmp 0x4f38b8
lea ecx, [edi + 0x10]
mov edx, edi
mov edi, ecx
call fcn.00463730
mov edi, edx
lea eax, [0x662080]
jmp 0x4f3943
cmp dword [edx], 0x34706475
je 0x4f38d7
cmp dword [edx], 0x36706475
jne 0x4f3cde
lea eax, [0x5f22c0]
mov dword [esp], eax
call fcn.0040bd40
mov edi, dword [esp + 4]
mov eax, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov edx, dword [esp + 0x70]
mov dword [edi + 4], ecx
mov dword [edi + 8], edx
mov ecx, dword [0x7c78f0]
test ecx, ecx
jne 0x4f3909
mov dword [edi], eax
jmp 0x4f390e
call fcn.00463730
mov ecx, dword [esp + 0x34]
mov dword [edi + 0xc], ecx
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x78]
mov dword [edi + 0x14], ecx
mov ecx, dword [0x7c78f0]
test ecx, ecx
jne 0x4f392f
mov dword [edi + 0x10], eax
jmp 0x4f393d
lea ecx, [edi + 0x10]
mov edx, edi
mov edi, ecx
call fcn.00463730
mov edi, edx
lea eax, [0x662098]
mov dword [esp + 0x48], edi
mov dword [esp + 0x30], eax
lea ecx, [0x5de420]
mov dword [esp], ecx
call fcn.0040bd40
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x30]
mov dword [eax], ecx
mov ecx, dword [0x7c78f0]
test ecx, ecx
jne 0x4f3976
mov ecx, dword [esp + 0x48]
mov dword [eax + 4], ecx
jmp 0x4f3986
lea edi, [eax + 4]
mov ecx, eax
mov eax, dword [esp + 0x48]
call fcn.00463730
mov eax, ecx
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], 1
mov dword [esp + 0xb8], 1
mov dword [esp + 0xbc], 0
mov dword [esp + 0xc0], 0
add esp, 0x90
ret
mov dword [esp + 0x40], ebx
mov dword [esp + 0x50], eax
mov ebp, dword [esp + 0x94]
mov dword [esp], ebp
mov ebp, dword [esp + 0x98]
mov dword [esp + 4], ebp
mov ebp, dword [esp + 0x9c]
mov dword [esp + 8], ebp
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ebx
call fcn.004f51a0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
test eax, eax
jne 0x4f3be9
cmp esi, 1
je 0x4f3a26
xor eax, eax
jmp 0x4f3a79
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], esi
mov dword [esp + 0x4c], ebx
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
mov edx, dword [ebx + 8]
mov ebp, dword [0x79c428]
mov esi, dword [0x79c42c]
mov edi, dword [0x79c430]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edi
call fcn.004f0610
movzx eax, byte [esp + 0x18]
mov ebx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
test al, al
je 0x4f3b39
lea edi, [esp + 0x7c]
xor eax, eax
call fcn.0046395b
mov ecx, dword [0x7a1d80]
mov edx, dword [0x7a1d84]
mov eax, ebx
mov ebx, dword [0x7a1d88]
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x80], edx
mov dword [esp + 0x84], ebx
lea ecx, [esi + 1]
cmp ebp, ecx
jae 0x4f3ae9
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 1
lea eax, [0x5ec8c0]
mov dword [esp + 0x10], eax
call fcn.0044a1f0
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov ebp, dword [esp + 0x1c]
mov eax, ebx
mov dword [esp + 0x38], ecx
lea edx, [ecx + ecx*4]
lea edi, [eax + edx*4 - 0x14]
mov edx, dword [0x7c78f0]
test edx, edx
jne 0x4f3b09
lea esi, [esp + 0x7c]
call fcn.00463e3e
jmp 0x4f3b33
mov dword [esp + 0x54], eax
mov dword [esp + 0x44], ebp
lea eax, [0x5ec8c0]
mov dword [esp], eax
mov dword [esp + 4], edi
lea eax, [esp + 0x7c]
mov dword [esp + 8], eax
call fcn.00410860
mov eax, dword [esp + 0x54]
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x38]
mov ebx, eax
mov eax, dword [esp + 0xa4]
test eax, eax
je 0x4f3b62
mov ecx, dword [esp + 0xa0]
lea edx, [ecx + eax - 1]
cmp byte [edx], 0x34
jne 0x4f3b5e
test eax, eax
lea edx, [0x62334c]
jmp 0x4f3b6e
test eax, eax
jmp 0x4f3b69
mov ecx, dword [esp + 0xa0]
mov edx, 0
je 0x4f3b7f
lea eax, [ecx + eax - 1]
cmp byte [eax], 0x36
jne 0x4f3b7f
lea edx, [0x623350]
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], esi
mov dword [esp + 0xc], ebp
lea eax, [esp + 0x58]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x18], eax
call fcn.004f2bf0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x2c]
mov dword [esp + 0xb0], eax
mov dword [esp + 0xb4], edx
mov dword [esp + 0xb8], ebx
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc0], ebp
add esp, 0x90
ret
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc0], edx
add esp, 0x90
ret
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], edx
mov dword [esp + 0xc0], ebx
add esp, 0x90
ret
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xc0], ebp
add esp, 0x90
ret
mov edx, dword [esp + 0xa0]
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.00409680
mov eax, dword [esp + 8]
mov dword [esp + 0xb0], 0
mov dword [esp + 0xb4], 0
mov dword [esp + 0xb8], 0
lea ecx, [0x661e40]
mov dword [esp + 0xbc], ecx
mov dword [esp + 0xc0], eax
add esp, 0x90
ret
mov dword [esp], 0
lea eax, [0x61135d]
mov dword [esp + 4], eax
mov dword [esp + 8], 0x14
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
call fcn.0044dc10
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.00409680
mov eax, dword [esp + 8]
lea ecx, [0x5e1fa0]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00435720
nop
call fcn.00462320
jmp fcn.004f3540