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

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x4af9c6
sub esp, 0x68
mov ecx, dword [esp + 0x70]
test ecx, ecx
je 0x4af595
nop
cmp ecx, 1
jne 0x4af3a6
mov edx, dword [esp + 0x6c]
cmp byte [edx], 0x2e
je 0x4af3da
jmp 0x4af3aa
mov edx, dword [esp + 0x6c]
cmp ecx, 2
jl 0x4af449
lea ebx, [ecx + edx - 1]
cmp byte [ebx], 0x2e
jne 0x4af449
lea eax, [ecx - 2]
cmp ecx, eax
jbe 0x4af9c0
movzx eax, byte [ecx + edx - 2]
cmp al, 0x5c
je 0x4af3da
cmp al, 0x2f
jne 0x4af449
lea eax, [0x53b820]
mov dword [esp], eax
call fcn.0040b290
mov eax, dword [esp + 4]
mov dword [eax + 4], 9
lea ecx, [0x54f038]
mov dword [eax], ecx
mov ecx, dword [esp + 0x70]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x68ad40]
test ecx, ecx
jne 0x4af415
mov ecx, dword [esp + 0x6c]
mov dword [eax + 8], ecx
jmp 0x4af425
lea edi, [eax + 8]
mov ecx, eax
mov eax, dword [esp + 0x6c]
call fcn.0045c980
mov eax, ecx
lea ecx, [0x587bac]
mov dword [eax + 0x10], ecx
lea ecx, [0x586910]
mov dword [eax + 0x14], ecx
lea ecx, [0x5878c8]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
add esp, 0x68
ret
mov dword [esp], edx
mov dword [esp + 4], ecx
call fcn.004ae560
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
test eax, eax
je 0x4af496
mov dword [esp + 0x54], edx
mov dword [esp + 0x64], ecx
mov eax, dword [0x663cf0]
mov ebx, dword [0x663cf4]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call fcn.004ab550
movzx eax, byte [esp + 0x10]
test al, al
je 0x4af4aa
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x68
ret
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov ecx, dword [esp + 0x70]
mov dword [esp + 4], ecx
call fcn.004afa60
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ebp, dword [esp + 8]
mov esi, dword [esp + 0xc]
test eax, eax
je 0x4af570
lea eax, [0x5878c8]
cmp edx, eax
je 0x4af4ed
mov ecx, 0
jne 0x4af564
mov dword [esp + 0x40], ecx
mov dword [esp + 0x64], edx
mov dword [esp + 0x3c], ebx
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0x14]
mov ebx, dword [0x663cf0]
mov ebp, dword [0x663cf4]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
mov dword [esp + 0xc], ebp
call fcn.004ab550
movzx eax, byte [esp + 0x10]
test al, al
jne 0x4af548
mov eax, dword [esp + 0x40]
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x14]
test ecx, ecx
je 0x4af55c
lea edx, [0x53daa0]
cmp dword [ecx + 4], edx
jne 0x4af55c
cmp dword [eax], 3
jne 0x4af55c
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x68
ret
mov edx, dword [esp + 0x64]
mov ebx, dword [esp + 0x3c]
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], ebx
add esp, 0x68
ret
mov eax, dword [ebp + 0x10]
mov dword [esp], esi
call eax
movzx eax, byte [esp + 4]
test al, al
jne 0x4af5a9
mov eax, dword [esp + 0x64]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x78], eax
add esp, 0x68
ret
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x68
ret
nop
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov ecx, dword [esp + 0x70]
mov dword [esp + 4], ecx
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0
call fcn.004ad710
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
test eax, eax
jne 0x4af6dd
mov dword [esp + 0x5c], ecx
jmp 0x4af742
nop
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x4af616
mov eax, dword [eax]
mov dword [esp], eax
call fcn.004ae3b0
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x60]
mov ebx, dword [esp + 0x50]
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x64]
mov eax, dword [0x6639a4]
cmp dword [0x6639a0], edx
jne 0x4af64d
mov dword [esp], edx
mov dword [esp + 4], ebx
mov dword [esp + 8], eax
call fcn.00403330
movzx eax, byte [esp + 0xc]
test al, al
jne 0x4af884
mov ecx, dword [esp + 0x28]
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x64]
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4af65b
mov ebp, eax
mov esi, dword [esp + 0x4c]
test ecx, ecx
je 0x4af884
cmp ecx, 0x400
jge 0x4af5a9
mov dword [esp + 0x4c], esi
mov dword [esp + 0x30], ebp
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov ecx, dword [esp + 0x70]
mov dword [esp + 4], ecx
call fcn.004ae560
mov eax, dword [esp + 8]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
test eax, eax
je 0x4af870
mov eax, dword [0x663cf0]
mov ebx, dword [0x663cf4]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call fcn.004ab550
movzx eax, byte [esp + 0x10]
test al, al
jne 0x4af870
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4af5a9
jmp 0x4af860
mov dword [esp + 0x58], edx
mov dword [esp + 0x64], ebx
mov eax, dword [0x663cf0]
mov ecx, dword [0x663cf4]
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
call fcn.004ab550
movzx eax, byte [esp + 0x10]
test al, al
je 0x4af722
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x68
ret
mov eax, dword [esp + 0x64]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x78], eax
add esp, 0x68
ret
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x30], eax
mov dword [esp + 0x4c], edx
mov dword [esp], ecx
mov dword [esp + 4], 0x400
call fcn.004aaa10
mov eax, dword [esp + 8]
mov dword [esp + 0x44], eax
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x28], ecx
mov edx, dword [esp + 0x14]
mov dword [esp + 0x60], edx
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x50], ebx
mov ebp, dword [esp + 0x14]
mov dword [esp + 0x38], ebp
mov esi, dword [esp + 0x18]
mov dword [esp + 0x64], esi
xor edi, edi
xor edi, edi
mov dword [esp + 0x24], edi
xor edi, edi
jmp 0x4af7d1
mov eax, dword [esp + 0x24]
cmp eax, 0x400
je 0x4af736
jmp 0x4af5ef
mov ebx, dword [esp + 0x34]
lea edi, [ebx + 1]
mov ebx, dword [esp + 0x50]
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x64]
mov dword [esp + 0x24], edx
mov dword [esp + 0x30], eax
mov dword [esp + 0x4c], ecx
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x60]
cmp edi, ecx
jge 0x4af796
mov dword [esp + 0x34], edi
lea ecx, [eax + edi*8]
mov edx, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp], 0
mov ebx, dword [esp + 0x6c]
mov dword [esp + 4], ebx
mov ebp, dword [esp + 0x70]
mov dword [esp + 8], ebp
lea esi, [0x54de9c]
mov dword [esp + 0xc], esi
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], ecx
call fcn.004497f0
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov dword [esp], eax
mov dword [esp + 4], ecx
call fcn.004af370
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x30]
test edx, edx
je 0x4af847
mov edx, eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x4c]
jmp 0x4af849
mov edx, eax
test edx, edx
je 0x4af857
mov edx, dword [esp + 0x24]
inc edx
jmp 0x4af7a6
mov edx, dword [esp + 0x24]
jmp 0x4af7a6
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x78], eax
add esp, 0x68
ret
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x68
ret
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov ecx, dword [esp + 0x70]
mov dword [esp + 4], ecx
call fcn.004ae560
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
test eax, eax
je 0x4af8dd
mov dword [esp + 0x64], edx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x2c], eax
mov eax, dword [0x663cf0]
mov ebx, dword [0x663cf4]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ebx
call fcn.004ab550
movzx eax, byte [esp + 0x10]
test al, al
je 0x4af8f1
mov dword [esp + 0x74], 0
mov dword [esp + 0x78], 0
add esp, 0x68
ret
mov eax, dword [0x663cf8]
mov ecx, dword [0x663cfc]
mov edx, dword [esp + 0x64]
mov dword [esp], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 4], edx
mov dword [esp + 8], eax
mov dword [esp + 0xc], ecx
call fcn.004ab550
movzx eax, byte [esp + 0x10]
test al, al
jne 0x4af92f
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x48]
jmp 0x4af9b4
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov ecx, dword [esp + 0x70]
mov dword [esp + 4], ecx
call fcn.004af9d0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0xc]
test eax, eax
je 0x4af95d
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x48]
jmp 0x4af9b4
mov eax, dword [ecx + 0x18]
mov dword [esp], edx
call eax
mov eax, dword [esp + 4]
mov ecx, dword [esp + 0x6c]
mov dword [esp], ecx
mov edx, dword [esp + 0x70]
mov dword [esp + 4], edx
or eax, 0x80
mov dword [esp + 8], eax
call fcn.004ad820
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4af998
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x48]
jmp 0x4af9b4
mov eax, dword [esp + 0x6c]
mov dword [esp], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 4], eax
call fcn.004ae560
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x74], eax
mov dword [esp + 0x78], ecx
add esp, 0x68
ret
call fcn.0045ca00
nop
call fcn.0045b540
jmp fcn.004af370