Function at 0x429020
Capabilities:
Get file size

Disassembly:
mov eax, 0x10940
call fcn.00431220
push ebx
lea eax, [esp + 0xc]
push esi
push eax
lea ebx, [esp + 0x54c]
xor esi, esi
call fcn.00419150
mov ecx, eax
call fcn.0041b100
mov eax, dword [esp + 0x10964]
mov dword [esp + 8], 2
cmp eax, esi
jg 0x42907a
jl 0x429064
cmp dword [esp + 0x10960], esi
ja 0x42907a
mov dword [esp + 0x10960], esi
mov dword [esp + 0x10964], esi
mov dword [esp + 8], 3
push ebp
mov ebp, dword [esp + 0x10950]
push edi
mov ecx, 0xc3
xor eax, eax
lea edi, [esp + 0x244]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x244]
push 0x30b
push ecx
push ebp
call fcn.004109e0
add esp, 0xc
lea edx, [esp + 0x3c]
mov dword [esp + 0x28], esi
push edx
push 0x104
call fcn.00419150
mov ecx, eax
call fcn.0041b3e0
mov edi, dword [sym.imp.MSVCRT.dll__wcslwr]
lea eax, [esp + 0x3c]
push eax
call edi
push ebp
call edi
lea ecx, [esp + 0x44]
push ecx
push ebp
call dword [sym.imp.MSVCRT.dll_wcsstr]
add esp, 0x10
test eax, eax
je 0x4290ee
mov dword [esp + 0x28], 1
push 0
push 0
push 3
push 0
push 1
push SysReAllocString
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, dword [sym.imp.MSVCRT.dll_sprintf]
cmp eax, 0xffffffff
mov dword [esp + 0x2c], eax
je 0x429392
lea edx, [esp + 0x34]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov edi, dword [esp + 0x10970]
mov edx, dword [esp + 0x10968]
mov ecx, edi
xor eax, eax
add ecx, edx
mov edx, dword [esp + 0x1096c]
adc eax, edx
mov edx, dword [esp + 0x38]
cmp eax, edx
mov eax, dword [esp + 0x34]
jl 0x429176
jg 0x429152
cmp ecx, eax
jbe 0x429176
mov edx, dword [esp + 0x10968]
mov ecx, eax
sub ecx, edx
mov dword [esp + 0x10970], ecx
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0x10970]
or ecx, 4
mov dword [esp + 0x10], ecx
xor ecx, ecx
cmp edi, ecx
ja 0x4291a3
cmp eax, ecx
mov dword [esp + 0x10970], eax
mov dword [esp + 0x10968], ecx
mov dword [esp + 0x1096c], ecx
mov dword [esp + 0x10], 7
jbe 0x42936e
mov edi, eax
cmp edi, 0x3c00000
ja 0x42936e
cmp edi, 0x10000
mov dword [esp + 0x14], 2
jbe 0x4291e1
lea eax, [edi + 0x400]
push eax
call sub.MFC42.DLL_operatornew
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x4291f0
mov dword [esp + 0x14], 3
jmp 0x429376
lea ecx, [esp + 0x550]
test ecx, ecx
je 0x429376
lea edx, [esp + 0x244]
push edx
push str.c00eef6e:__s_r_n
push ebx
call ebp
mov ecx, dword [esp + 0x2e]
mov edx, dword [esp + 0x2c]
mov esi, eax
mov eax, dword [esp + 0x30]
add esp, 0xc
and eax, 0xffff
and ecx, 0xffff
and edx, 0xffff
push eax
mov eax, dword [esp + 0x22]
push ecx
mov ecx, dword [esp + 0x22]
push edx
mov edx, dword [esp + 0x24]
and eax, 0xffff
and ecx, 0xffff
push eax
and edx, 0xffff
push ecx
push edx
lea eax, [esi + ebx]
push str.6922c42b:__04d_02d_02d_02d_02d_02d_r_n
push eax
call ebp
add esp, 0x20
add esi, eax
push edi
lea ecx, [esi + ebx]
push str.0a7172db:__d_r_n
push ecx
call ebp
mov edx, dword [esp + 0x1096c]
add esp, 0xc
add esi, eax
push edx
push str.fd1f3fca:__s_r_n
lea eax, [esi + ebx]
push eax
call ebp
mov ecx, dword [esp + 0x10970]
add esp, 0xc
add esi, eax
push ecx
push str.fffb7d44:__s_r_n
lea edx, [esi + ebx]
push edx
call ebp
mov ecx, dword [esp + 0x10974]
add esp, 0xc
add esi, eax
mov eax, dword [esp + 0x1096c]
push eax
push ecx
lea edx, [esi + ebx]
push str.112b6505:__I64d_r_n
push edx
call ebp
add esp, 0x10
add esi, eax
mov eax, dword [esp + 0x10]
push eax
lea ecx, [esi + ebx]
push str.dffc2201:__d_r_n
push ecx
call ebp
add esi, eax
add esp, 0xc
lea edx, [esi + ebx]
push str.1f62c707:_ecf8427e_r_n_r_n
push edx
call ebp
mov ecx, dword [esp + 0x10960]
add esi, eax
mov eax, dword [esp + 0x10964]
push eax
push ecx
push esi
push ebx
call fcn.00411d70
mov ecx, esi
xor eax, eax
mov edx, ecx
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 0x18
and ecx, 3
xor esi, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x1096c]
mov ecx, dword [esp + 0x10968]
mov edi, dword [esp + 0x2c]
push esi
push esi
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointerEx]
mov eax, dword [esp + 0x10970]
lea edx, [esp + 0x30]
push esi
push edx
push eax
push ebx
push edi
call fcn.00419150
mov ecx, eax
call fcn.0041b480
test eax, eax
je 0x429364
mov eax, dword [esp + 0x28]
test eax, eax
je 0x42935e
mov ecx, dword [esp + 0x10970]
push ecx
push ebx
call fcn.00411030
add esp, 8
mov esi, dword [esp + 0x30]
jmp 0x429376
mov dword [esp + 0x14], 4
jmp 0x429376
mov dword [esp + 0x14], 1
mov edx, dword [esp + 0x2c]
push edx
call fcn.00419150
mov ecx, eax
call fcn.0041b350
cmp dword [esp + 0x14], 2
je 0x429433
lea eax, [esp + 0x244]
add esi, ebx
push eax
push str.c00eef6e:__s_r_n
push esi
call ebp
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2e]
add esp, 0xc
mov esi, eax
mov eax, dword [esp + 0x20]
and ecx, 0xffff
and edx, 0xffff
push ecx
mov ecx, dword [esp + 0x22]
and eax, 0xffff
push edx
mov edx, dword [esp + 0x22]
push eax
mov eax, dword [esp + 0x24]
and ecx, 0xffff
and edx, 0xffff
push ecx
and eax, 0xffff
push edx
push eax
lea ecx, [esi + ebx]
push str.6922c42b:__04d_02d_02d_02d_02d_02d_r_n
push ecx
call ebp
add esp, 0x20
add esi, eax
push 0xffffffffffffffff
lea edx, [esi + ebx]
push str.0a7172db:__d_r_n
push edx
call ebp
add esp, 0xc
add esi, eax
mov eax, dword [esp + 0x10960]
push eax
lea ecx, [esi + ebx]
push str.fd1f3fca:__s_r_n
push ecx
call ebp
add esi, eax
add esp, 0xc
lea edx, [esi + ebx]
push str.1f62c707:_ecf8427e_r_n_r_n
push edx
call ebp
add esp, 8
add esi, eax
mov eax, dword [esp + 0x1095c]
mov ecx, dword [esp + 0x10958]
push eax
push ecx
push esi
push ebx
call fcn.00411d70
add esp, 0x10
test ebx, ebx
pop edi
pop ebp
je 0x429467
lea edx, [esp + 0x548]
cmp ebx, edx
je 0x429467
push ebx
call sub.MFC42.DLL_operatordelete
add esp, 4
pop esi
xor eax, eax
pop ebx
add esp, 0x10940
ret