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

Disassembly:
sub esp, 0x17c
mov eax, dword [0x592884]
xor eax, esp
mov dword [esp + 0x174], eax
push ebx
mov ebx, dword [esp + 0x188]
push ebp
push esi
mov esi, dword [esp + 0x18c]
mov ebp, ecx
push edi
cmp esi, 0xffffffff
jl 0x4afa92
mov ecx, dword [ebp]
cmp esi, dword [ecx + 4]
jge 0x4afa92
cmp dword [ebp + 4], 0xffffffff
je 0x4af6d8
call fcn.004af590
mov dword [ebp + 4], 0xffffffff
cmp esi, dword [ebp + 0x138]
jne 0x4af6ff
cmp esi, 0xffffffff
je 0x4af6ff
lea esi, [ebp + 8]
mov ecx, 0x4c
mov edi, ebx
xor eax, eax
rep movsd dword es:[edi], dword [esi]
jmp 0x4afa97
mov ecx, dword [ebp]
cmp esi, 0xffffffff
jne 0x4af77b
mov eax, dword [ecx + 4]
mov dword [ebx], eax
xor eax, eax
mov byte [ebx + 4], 0
mov dword [ebx + 0x108], 0
mov dword [ebx + 0x10c], 0
mov dword [ebx + 0x110], 0
mov dword [ebx + 0x114], 0
mov dword [ebx + 0x118], 0
mov dword [ebx + 0x11c], 0
mov dword [ebx + 0x120], 0
mov dword [ebx + 0x124], 0
mov dword [ebx + 0x128], 0
mov dword [ebx + 0x12c], 0
jmp 0x4afa97
cmp esi, dword [ecx + 0x10]
jge 0x4af788
call fcn.004af010
mov ecx, dword [ebp]
cmp dword [ecx + 0x18], 0
je 0x4afa8b
cmp dword [ecx + 0x10], esi
jge 0x4af7a7
mov ecx, dword [ebp]
call fcn.004af050
mov ecx, dword [ebp]
cmp dword [ecx + 0x10], esi
jl 0x4af797
sub esp, 0x10
lea eax, [esp + 0x88]
lea edx, [esp + 0x38]
push 0x104
push eax
push 0
call fcn.004aed10
mov ecx, dword [ebp]
lea eax, [esp + 0x34]
add esp, 0x1c
lea edx, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.004af0b0
add esp, 8
test eax, eax
jne 0x4afa8b
mov eax, dword [ebp]
mov edx, dword [eax]
mov ecx, dword [edx + 0x1c]
test ecx, ecx
je 0x4af80b
mov eax, dword [ecx]
push 0
push dword [esp + 0x18]
call dword [eax + 8]
test eax, eax
je 0x4af834
mov eax, 0x800
jmp 0x4afa97
cmp byte [edx], 0
je 0x4af82d
cmp byte [edx + 1], 0
je 0x4af865
mov eax, dword [edx + 0xc]
add eax, dword [esp + 0x14]
push 0
push 0
push eax
push dword [edx + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4af834
mov eax, dword [esp + 0x14]
mov dword [edx + 0x18], eax
mov esi, dword [esp + 0x18]
push esi
call fcn.004f77bd
mov ecx, dword [ebp]
add esp, 4
mov edi, eax
mov edx, 1
push dword [ecx]
mov ecx, edi
push esi
call fcn.004ae730
add esp, 8
cmp eax, esi
je 0x4af86f
push edi
call fcn.004f77b8
add esp, 4
mov eax, 0x800
jmp 0x4afa97
mov eax, dword [ebp]
lea ecx, [ebx + 4]
mov eax, dword [eax + 0x10]
mov dword [ebx], eax
lea eax, [esp + 0x78]
push eax
call fcn.004ab450
mov eax, dword [esp + 0x5c]
mov ecx, eax
shr ecx, 1
mov edx, eax
and ecx, 0xffffff01
shr edx, 5
mov dword [esp + 0x14], ecx
and dl, 1
mov ecx, eax
mov dword [ebx + 0x108], 0x80
shr ecx, 2
and ecx, 0xffffff01
mov dword [esp + 0x1c], ecx
mov ecx, 0x80
test eax, 0x40000010
je 0x4af8d2
mov dword [ebx + 0x108], 0x90
mov ecx, 0x90
test dl, dl
je 0x4af8df
or ecx, 0x20
mov dword [ebx + 0x108], ecx
cmp byte [esp + 0x14], 0
je 0x4af8ef
or ecx, 2
mov dword [ebx + 0x108], ecx
cmp byte [esp + 0x1c], 0
je 0x4af8ff
or ecx, 4
mov dword [ebx + 0x108], ecx
mov eax, dword [esp + 0x40]
mov dword [ebx + 0x124], eax
mov eax, dword [esp + 0x44]
mov dword [ebx + 0x128], eax
mov eax, dword [esp + 0x30]
mov dword [ebx + 0x12c], eax
lea eax, [esp + 0x20]
push eax
mov eax, dword [esp + 0x3c]
push eax
shr eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_DosDateTimeToFileTime]
mov ecx, dword [esp + 0x20]
xor esi, esi
cmp dword [esp + 0x18], 4
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x10c], ecx
mov dword [ebx + 0x110], eax
mov dword [ebx + 0x114], ecx
mov dword [ebx + 0x118], eax
mov dword [ebx + 0x11c], ecx
mov dword [ebx + 0x120], eax
jbe 0x4afa61
mov byte [esp + 0x16], 0
nop
movzx eax, byte [esi + edi]
mov ecx, 0x56a708
mov byte [esp + 0x14], al
movzx eax, byte [edi + esi + 1]
mov byte [esp + 0x15], al
lea eax, [esp + 0x14]
nop word [eax + eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4af9b0
test dl, dl
je 0x4af9ac
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4af9b0
add eax, 2
add ecx, 2
test dl, dl
jne 0x4af990
xor eax, eax
jmp 0x4af9b5
sbb eax, eax
or eax, 1
test eax, eax
je 0x4af9d1
movsx eax, byte [esi + edi + 2]
add eax, 4
add esi, eax
lea eax, [esi + 4]
cmp eax, dword [esp + 0x18]
jb 0x4af970
jmp 0x4afa61
mov al, byte [esi + edi + 4]
add esi, 5
movsx ecx, al
mov edx, ecx
shr ecx, 2
shr edx, 1
and cl, 1
and edx, 0xffffff01
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], edx
test al, 1
je 0x4afa1b
mov eax, dword [esi + edi + 4]
mov ecx, dword [esi + edi]
add esi, 4
push eax
push ecx
call fcn.004af600
mov dword [ebx + 0x120], edx
add esp, 8
mov edx, dword [esp + 0x1c]
mov dword [ebx + 0x11c], eax
test dl, dl
je 0x4afa3f
mov eax, dword [esi + edi + 4]
mov ecx, dword [esi + edi]
add esi, 4
push eax
push ecx
call fcn.004af600
add esp, 8
mov dword [ebx + 0x10c], eax
mov dword [ebx + 0x110], edx
cmp byte [esp + 0x18], 0
je 0x4afa61
push dword [esi + edi + 4]
push dword [esi + edi]
call fcn.004af600
add esp, 8
mov dword [ebx + 0x114], eax
mov dword [ebx + 0x118], edx
test edi, edi
je 0x4afa6e
push edi
call fcn.004f77b8
add esp, 4
mov eax, dword [esp + 0x190]
lea edi, [ebp + 8]
mov ecx, 0x4c
mov esi, ebx
rep movsd dword es:[edi], dword [esi]
mov dword [ebp + 0x138], eax
xor eax, eax
jmp 0x4afa97
mov eax, 0x700
jmp 0x4afa97
mov eax, 0x10000
mov ecx, dword [esp + 0x184]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004f6f55
add esp, 0x17c
ret 8