Function at 0x449590
Capabilities:
Get file size
Read file on windows
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x487652
mov eax, dword fs:[0]
push eax
sub esp, 0x1c8
mov eax, dword [0x4b59f4]
xor eax, esp
mov dword [esp + 0x1c4], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4b59f4]
xor eax, esp
push eax
lea eax, [esp + 0x1dc]
mov dword fs:[0], eax
mov edi, dword [esp + 0x1f4]
mov eax, dword [esp + 0x1ec]
xor ebx, ebx
cmp edi, ebx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x24], edi
push ebx
je 0x44960b
mov edx, dword [edi]
push SysReAllocString
push eax
mov eax, dword [edx + 0x2c]
mov ecx, edi
call eax
mov edx, dword [edi]
push ebx
mov dword [esp + 0x1c], eax
push eax
mov eax, dword [edx + 0x8c]
mov ecx, edi
call eax
jmp 0x44962d
push 0x80
push 3
push ebx
push 1
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push eax
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
call fcn.00453650
mov ecx, dword [esp + 0x1c]
mov ebp, eax
add esp, 4
cmp edi, ebx
mov dword [esp + 0x14], ebp
lea eax, [esp + 0x20]
je 0x449659
mov edx, dword [edi]
mov edx, dword [edx + 0x48]
push eax
push esi
push ebp
push ecx
mov ecx, edi
call edx
jmp 0x449664
push ebx
push eax
push esi
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
push ebx
push ebx
push ebx
shr esi, 1
lea edi, [esi - 1]
push edi
add ebp, 2
push ebp
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov esi, eax
lea edx, [esi + 1]
push edx
call fcn.00453650
add esp, 4
push ebx
push ebx
push esi
push eax
push edi
push ebp
push ebx
push ebx
mov dword [esp + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
push eax
mov byte [edi + esi], bl
call fcn.00453655
add esp, 4
mov dword [esp + 0x78], vtable.CStringProcess.0
mov dword [esp + 0x7c], ebx
mov dword [esp + 0x84], ebx
mov dword [esp + 0x80], ebx
mov dword [esp + 0x98], ebx
mov dword [esp + 0x9c], 1
cmp edi, ebx
sete cl
mov ebp, 0xf
mov dword [esp + 0x1e4], ebx
mov dword [esp + 0x64], edi
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], esi
mov byte [esp + 0x8c], cl
mov dword [esp + 0x70], esi
mov byte [esp + 0x8d], bl
mov dword [esp + 0x90], ebx
mov byte [esp + 0x94], bl
mov dword [esp + 0xcc], ebp
mov dword [esp + 0xc8], ebx
mov byte [esp + 0xb8], bl
push ebx
push ebx
lea ecx, [esp + 0x110]
mov byte [esp + 0x1ec], 1
mov dword [esp + 0x1dc], ebx
mov byte [esp + 0x110], bl
call fcn.00438310
push ebx
push 9
lea ecx, [esp + 0x110]
call fcn.00438310
push ebx
push 0xd
lea ecx, [esp + 0x110]
call fcn.00438310
mov eax, dword [esp + 0x1f0]
cmp eax, 5
mov dword [esp + 0x14], ebx
ja case.default.0x44977e
jmp dword [eax*4 + 0x449a80]
mov dword [esp + 0x14], 1
jmp case.default.0x44977e
mov dword [esp + 0x14], 4
jmp case.default.0x44977e
mov dword [esp + 0x14], 5
jmp case.default.0x44977e
mov dword [esp + 0x14], 6
jmp case.default.0x44977e
mov dword [esp + 0x14], 7
jmp case.default.0x44977e
mov dword [esp + 0x14], 8
lea ecx, [esp + 0x64]
call fcn.004479a0
mov esi, eax
cmp esi, ebx
je 0x449a0f
push 1
push ebx
mov ecx, esi
call fcn.00447580
cmp eax, 1
jne 0x4499fc
push ebx
push eax
lea edx, [esp + 0x110]
push edx
lea eax, [esp + 0xc0]
push eax
mov ecx, esi
call fcn.004479f0
push 0xffffffffffffffff
push ebx
lea ecx, [esp + 0xbc]
push ecx
lea ecx, [esp + 0xf8]
mov dword [esp + 0x110], ebp
mov dword [esp + 0x10c], ebx
mov byte [esp + 0xfc], bl
call fcn.004067c0
xor edx, edx
cmp dword [esp + 0x14], ebx
jle 0x449863
mov edi, dword [esi + 0xc]
mov eax, dword [esi + 8]
cmp eax, edi
jge 0x44985f
mov ecx, dword [esi + 4]
mov cl, byte [eax + ecx]
cmp cl, bl
je 0x449851
add eax, 1
cmp cl, 9
mov dword [esi + 8], eax
jne 0x449835
cmp dword [esi + 8], edi
jge 0x44985f
add edx, 1
cmp edx, dword [esp + 0x14]
jl 0x449835
mov edi, dword [esp + 0x1c]
mov dword [esp + 0xe8], ebp
mov dword [esp + 0xe4], ebx
mov byte [esp + 0xd4], bl
mov edx, dword [esi + 8]
cmp edx, dword [esi + 0xc]
mov byte [esp + 0x1e4], 3
push ebx
jge 0x4498cc
push ebx
lea eax, [esp + 0x110]
push eax
lea ecx, [esp + 0xc0]
push ecx
mov ecx, esi
call fcn.004479f0
cmp dword [esp + 0xcc], 0x10
mov eax, dword [esp + 0xb8]
jae 0x4498b9
lea eax, [esp + 0xb8]
push eax
lea edx, [esp + 0xd4]
push edx
call fcn.00447e40
add esp, 8
jmp 0x4498dd
push 0x49bc11
lea ecx, [esp + 0xd8]
call fcn.00406970
mov esi, dword [esp + 0x28]
lea eax, [esp + 0xec]
push eax
lea ecx, [esp + 0xa4]
add esi, 4
push ecx
mov ecx, esi
call fcn.00448ab0
push 0xffffffffffffffff
push ebx
lea edx, [esp + 0xf4]
push edx
lea ecx, [esp + 0x38]
mov dword [esp + 0x50], ebp
mov dword [esp + 0x4c], ebx
mov byte [esp + 0x3c], bl
call fcn.004067c0
push 0xffffffffffffffff
push ebx
lea eax, [esp + 0xd8]
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x1f0], 4
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
call fcn.004067c0
lea ecx, [esp + 0x2c]
push ecx
lea edx, [esp + 0xac]
push edx
mov ecx, esi
mov byte [esp + 0x1ec], 5
call fcn.00449050
mov eax, dword [esp + 0x60]
cmp eax, 0x10
jb 0x449979
add eax, 1
push eax
mov eax, dword [esp + 0x50]
push eax
call fcn.00406020
add esp, 8
mov eax, dword [esp + 0x44]
cmp eax, 0x10
mov dword [esp + 0x60], ebp
mov dword [esp + 0x5c], ebx
mov byte [esp + 0x4c], bl
jb 0x44999f
mov ecx, dword [esp + 0x30]
add eax, 1
push eax
push ecx
call fcn.00406020
add esp, 8
mov eax, dword [esp + 0xe8]
cmp eax, 0x10
jb 0x4499bf
mov edx, dword [esp + 0xd4]
add eax, 1
push eax
push edx
call fcn.00406020
add esp, 8
mov eax, dword [esp + 0x104]
cmp eax, 0x10
mov dword [esp + 0xe8], ebp
mov dword [esp + 0xe4], ebx
mov byte [esp + 0xd4], bl
mov byte [esp + 0x1e4], 1
jb 0x4499fc
add eax, 1
push eax
mov eax, dword [esp + 0xf4]
push eax
call fcn.00406020
add esp, 8
lea ecx, [esp + 0x64]
call fcn.004479a0
mov esi, eax
cmp esi, ebx
jne 0x4497d2
push edi
call fcn.00453655
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x1c]
add esp, 4
cmp ecx, ebx
push eax
je 0x449a2e
mov edx, dword [ecx]
mov edx, dword [edx + 0x44]
call edx
jmp 0x449a34
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0xcc]
cmp eax, 0x10
jb 0x449a54
mov ecx, dword [esp + 0xb8]
add eax, 1
push eax
push ecx
call fcn.00406020
add esp, 8
mov ecx, dword [esp + 0x1dc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1c4]
xor ecx, esp
call fcn.0046fe25
add esp, 0x1d4
ret 0xc