Function at 0x40ac20
Capabilities:
Get file size
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x2d8
mov eax, dword [0x43d504]
xor eax, esp
mov dword [esp + 0x2d4], eax
mov eax, dword [esp + 0x2e0]
push ebx
push esi
mov esi, dword [esp + 0x2e4]
push edi
xor edi, edi
push 0x2c
mov ebx, ecx
lea ecx, [esp + 0x54]
push edi
push ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], eax
mov dword [esp + 0x20], 0x800b0100
mov dword [esp + 0x58], edi
call fcn.0041a390
add esp, 0xc
push edi
push edi
push 3
xor eax, eax
push edi
push 1
push SysReAllocString
push esi
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], eax
mov dword [esp + 0x98], 0xf750e6c3
mov word [esp + 0x9c], 0x38ee
mov word [esp + 0x9e], 0x11d1
mov byte [esp + 0xa0], 0x85
mov byte [esp + 0xa1], 0xe5
mov byte [esp + 0xa2], al
mov byte [esp + 0xa3], 0xc0
mov byte [esp + 0xa4], 0x4f
mov byte [esp + 0xa5], 0xc2
mov byte [esp + 0xa6], 0x95
mov byte [esp + 0xa7], 0xee
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], edi
mov dword [esp + 0x28], edi
mov dword [esp + 0x2c], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x40aff9
cmp esi, edi
je 0x40aff9
lea edx, [esp + 0x18]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x40aff2
cmp dword [esp + 0x1c], edi
jg 0x40aff2
jl 0x40ad55
cmp dword [esp + 0x18], 0x2000000
ja 0x40aff2
push ebp
push 0x100
mov dword [esp + 0x14], 0x100
call fcn.00418ee3
mov ecx, dword [ebx + 0x410]
add esp, 4
push edi
mov ebp, eax
push ebp
lea eax, [esp + 0x18]
push eax
push esi
call ecx
test eax, eax
jne 0x40adda
push ebp
call fcn.00419fa6
mov edx, dword [esp + 0x14]
push edx
call fcn.00418ee3
mov ecx, dword [ebx + 0x410]
add esp, 8
push edi
mov ebp, eax
push ebp
lea eax, [esp + 0x18]
push eax
push esi
call ecx
test eax, eax
jne 0x40adda
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call fcn.00419fa6
add esp, 4
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x2e0]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041a372
add esp, 0x2d8
ret 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx + 0x414]
push edi
lea edx, [esp + 0x84]
push edx
lea eax, [esp + 0x1c]
push eax
call ecx
test eax, eax
je 0x40adb1
mov eax, dword [esp + 0x10]
mov ecx, 0x11
mov esi, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_________._:_________
lea edi, [esp + 0x29c]
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
lea eax, [eax + eax + 1]
mov edx, 2
mul edx
seto cl
movsw word es:[edi], word [esi]
neg ecx
or ecx, eax
push ecx
call fcn.00418ee3
mov ecx, dword [esp + 0x14]
mov esi, eax
add esp, 4
xor eax, eax
test ecx, ecx
jbe 0x40ae72
lea ecx, [ecx]
movzx ecx, byte [eax + ebp]
shr ecx, 4
movsx edx, byte [esp + ecx + 0x29c]
mov word [esi + eax*4], dx
movzx ecx, byte [eax + ebp]
and ecx, 0xf
movsx edx, byte [esp + ecx + 0x29c]
mov word [esi + eax*4 + 2], dx
mov ecx, dword [esp + 0x10]
add eax, 1
cmp eax, ecx
jb 0x40ae40
push 0
mov word [esi + ecx*4], 0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [ebx + 0x418]
push 0
push eax
push ebp
push ecx
call edx
push ebp
mov edi, eax
call fcn.00419fa6
add esp, 4
test edi, edi
je 0x40afca
push 0x208
lea eax, [esp + 0x98]
push 0
push eax
mov dword [esp + 0x9c], 0
call fcn.0041a390
mov edx, dword [ebx + 0x41c]
add esp, 0xc
push 0
lea ecx, [esp + 0x94]
push ecx
push edi
call edx
test eax, eax
je 0x40afb4
cmp byte [ebx + 0x400], 0
mov ecx, dword [esp + 0x28]
lea eax, [esp + 0x94]
mov dword [esp + 0x34], eax
mov dword [esp + 0x3c], ecx
mov eax, 2
mov ecx, 1
lea edx, [esp + 0x2c]
mov dword [esp + 0x2c], 0x24
mov dword [esp + 0x38], esi
mov dword [esp + 0x50], 0x30
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x6c], ecx
mov dword [esp + 0x68], edx
je 0x40af3b
or dword [esp + 0x78], 0x1000
jmp 0x40af40
or dword [esp + 0x78], 0x10
mov edx, dword [ebx + 0x430]
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x84]
push ecx
push 0xffffffffffffffff
call edx
mov ebp, eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x40af83
cmp ebp, 0x800b0100
mov word [eax], 0
je 0x40af83
mov ecx, dword [esp + 0x2f4]
mov edx, dword [esp + 0x70]
push ecx
push eax
push edx
mov ecx, ebx
call fcn.0040a9d0
mov edx, dword [ebx + 0x430]
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x84]
push ecx
push 0xffffffffffffffff
mov dword [esp + 0x78], 2
call edx
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 0x420]
push 0
push edi
push eax
call ecx
jmp 0x40afce
mov eax, dword [esp + 0x14]
mov ecx, dword [ebx + 0x420]
mov ebp, dword [esp + 0x18]
push 0
push edi
push eax
call ecx
jmp 0x40afce
mov ebp, dword [esp + 0x18]
push esi
call fcn.00419fa6
mov edx, dword [esp + 0x18]
mov eax, dword [ebx + 0x424]
add esp, 4
push 0
push edx
call eax
mov eax, ebp
call fcn.0040a660
jmp 0x40adbf
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x40adc0