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

Disassembly:
sub esp, 0x17c
mov eax, dword [0x5938b4]
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 0x4afaf2
mov ecx, dword [ebp]
cmp esi, dword [ecx + 4]
jge 0x4afaf2
cmp dword [ebp + 4], 0xffffffff
je 0x4af738
call fcn.004af5f0
mov dword [ebp + 4], 0xffffffff
cmp esi, dword [ebp + 0x138]
jne 0x4af75f
cmp esi, 0xffffffff
je 0x4af75f
lea esi, [ebp + 8]
mov ecx, 0x4c
mov edi, ebx
xor eax, eax
rep movsd dword es:[edi], dword [esi]
jmp 0x4afaf7
mov ecx, dword [ebp]
cmp esi, 0xffffffff
jne 0x4af7db
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 0x4afaf7
cmp esi, dword [ecx + 0x10]
jge 0x4af7e8
call fcn.004af070
mov ecx, dword [ebp]
cmp dword [ecx + 0x18], 0
je 0x4afaeb
cmp dword [ecx + 0x10], esi
jge 0x4af807
mov ecx, dword [ebp]
call fcn.004af0b0
mov ecx, dword [ebp]
cmp dword [ecx + 0x10], esi
jl 0x4af7f7
sub esp, 0x10
lea eax, [esp + 0x88]
lea edx, [esp + 0x38]
push 0x104
push eax
push 0
call fcn.004aed70
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.004af110
add esp, 8
test eax, eax
jne 0x4afaeb
mov eax, dword [ebp]
mov edx, dword [eax]
mov ecx, dword [edx + 0x1c]
test ecx, ecx
je 0x4af86b
mov eax, dword [ecx]
push 0
push dword [esp + 0x18]
call dword [eax + 8]
test eax, eax
je 0x4af894
mov eax, 0x800
jmp 0x4afaf7
cmp byte [edx], 0
je 0x4af88d
cmp byte [edx + 1], 0
je 0x4af8c5
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 0x4af894
mov eax, dword [esp + 0x14]
mov dword [edx + 0x18], eax
mov esi, dword [esp + 0x18]
push esi
call fcn.004f8dad
mov ecx, dword [ebp]
add esp, 4
mov edi, eax
mov edx, 1
push dword [ecx]
mov ecx, edi
push esi
call fcn.004ae790
add esp, 8
cmp eax, esi
je 0x4af8cf
push edi
call fcn.004f8da8
add esp, 4
mov eax, 0x800
jmp 0x4afaf7
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.004ab4b0
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 0x4af932
mov dword [ebx + 0x108], 0x90
mov ecx, 0x90
test dl, dl
je 0x4af93f
or ecx, 0x20
mov dword [ebx + 0x108], ecx
cmp byte [esp + 0x14], 0
je 0x4af94f
or ecx, 2
mov dword [ebx + 0x108], ecx
cmp byte [esp + 0x1c], 0
je 0x4af95f
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 0x4afac1
mov byte [esp + 0x16], 0
nop
movzx eax, byte [esi + edi]
mov ecx, 0x56b788
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 0x4afa10
test dl, dl
je 0x4afa0c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4afa10
add eax, 2
add ecx, 2
test dl, dl
jne 0x4af9f0
xor eax, eax
jmp 0x4afa15
sbb eax, eax
or eax, 1
test eax, eax
je 0x4afa31
movsx eax, byte [esi + edi + 2]
add eax, 4
add esi, eax
lea eax, [esi + 4]
cmp eax, dword [esp + 0x18]
jb 0x4af9d0
jmp 0x4afac1
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 0x4afa7b
mov eax, dword [esi + edi + 4]
mov ecx, dword [esi + edi]
add esi, 4
push eax
push ecx
call fcn.004af660
mov dword [ebx + 0x120], edx
add esp, 8
mov edx, dword [esp + 0x1c]
mov dword [ebx + 0x11c], eax
test dl, dl
je 0x4afa9f
mov eax, dword [esi + edi + 4]
mov ecx, dword [esi + edi]
add esi, 4
push eax
push ecx
call fcn.004af660
add esp, 8
mov dword [ebx + 0x10c], eax
mov dword [ebx + 0x110], edx
cmp byte [esp + 0x18], 0
je 0x4afac1
push dword [esi + edi + 4]
push dword [esi + edi]
call fcn.004af660
add esp, 8
mov dword [ebx + 0x114], eax
mov dword [ebx + 0x118], edx
test edi, edi
je 0x4aface
push edi
call fcn.004f8da8
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 0x4afaf7
mov eax, 0x700
jmp 0x4afaf7
mov eax, 0x10000
mov ecx, dword [esp + 0x184]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004f8545
add esp, 0x17c
ret 8