Function at 0x449959
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
and eax, 0xfffffff0
mov dword [ebp + 0x10], eax
lea eax, [eax + eax*2]
shl eax, 1
cdq
push ebx
push esi
lea ebx, [ecx + 0x100480]
lea esi, [ebx + 0xffc00]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp + 0x14]
push edi
xor edi, edi
or eax, dword [ebp + 0x18]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 8], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [ebp - 0x50], edx
je 0x4499cd
mov eax, dword [ecx]
mov dword [ebp - 0x5c], eax
mov eax, dword [ecx + 4]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x10]
cdq
mov dword [ecx], edi
mov dword [ecx + 4], edi
mov ecx, eax
mov eax, dword [ebp - 0x5c]
sub eax, ecx
mov ecx, dword [ebp - 0x58]
sbb ecx, edx
add eax, dword [ebp + 0x14]
adc ecx, dword [ebp + 0x18]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], ecx
push edi
push dword [ebp - 0x50]
push dword [ebp - 0x54]
push dword [ebp + 8]
call fcn.0043f790
add esp, 0x10
cmp eax, dword [ebp - 0x54]
jne 0x449c07
cmp edx, dword [ebp - 0x50]
jne 0x449c07
push edi
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 8]
jne 0x449c07
push 8
push ebx
push str.PRIVHEAD
call dword [sym.imp.shlwapi.dll_StrCmpNA]
test eax, eax
jne 0x449c07
push 0x40
lea eax, [ebx + 0x30]
push eax
push esi
call fcn.004143a0
mov eax, dword [ebp + 0x14]
add esp, 0xc
or eax, dword [ebp + 0x18]
jne 0x449a7d
lea eax, [ebx + 0x11b]
push 8
push eax
call fcn.00442283
mov dword [ebp + 0x1c], eax
lea eax, [ebx + 0x12b]
push 8
push eax
mov dword [ebp + 0x20], edx
call fcn.00442283
mov ecx, eax
mov eax, dword [ebp + 0x10]
add esp, 0x10
mov esi, edx
cdq
push edx
add ecx, 1
push eax
adc esi, edi
push esi
push ecx
call fcn.004ad070
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x18], edx
lea eax, [ebx + 0xffc00]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrlenA]
push edi
push dword [ebp + 0x18]
mov byte [ebp - 1], al
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.0043f790
add esp, 0x10
cmp eax, dword [ebp + 0x14]
jne 0x449c07
cmp edx, dword [ebp + 0x18]
jne 0x449c07
push edi
lea eax, [ebp - 8]
push eax
mov esi, 0x2000
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp dword [ebp - 8], esi
jne 0x449c07
xor eax, eax
cmp dword [ebx], edi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0xc], edi
mov ecx, ebx
jne 0x449aeb
cmp eax, esi
jge 0x449aeb
add ecx, dword [ebp + 0x10]
add eax, dword [ebp + 0x10]
cmp dword [ecx], edi
je 0x449add
mov eax, dword [ebp + 0x10]
cdq
add ecx, 0x2e
push 8
push ecx
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], edx
call fcn.00442283
pop ecx
pop ecx
push dword [ebp - 0x58]
sub eax, 1
push dword [ebp - 0x5c]
sbb edx, edi
push edx
push eax
call fcn.004ad070
mov esi, eax
add esi, dword [ebp + 0x14]
push edi
adc edx, dword [ebp + 0x18]
mov dword [ebp - 0x4c], esi
push edx
push esi
push dword [ebp + 8]
mov dword [ebp - 0x48], edx
call fcn.0043f790
add esp, 0x10
cmp eax, esi
jne 0x449c07
cmp edx, dword [ebp - 0x48]
jne 0x449c07
mov esi, dword [ebp + 0x10]
push edi
lea eax, [ebp - 8]
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp esi, dword [ebp - 8]
jne 0x449c07
lea eax, [ebx + 8]
push 4
push eax
call fcn.00442283
cmp eax, edi
pop ecx
pop ecx
mov dword [ebp + 0x10], eax
jle 0x449c07
mov eax, 0xffc00
cdq
idiv dword [ebp + 0x10]
push 4
mov esi, eax
lea eax, [ebx + 4]
push eax
call fcn.00442283
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], edx
mov eax, esi
cdq
cmp dword [ebp - 0x50], edx
pop ecx
pop ecx
jl 0x449ba8
jg 0x449ba2
cmp dword [ebp - 0x54], eax
jbe 0x449ba8
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], edx
mov esi, dword [ebp - 0x54]
imul esi, dword [ebp + 0x10]
lea eax, [ebx + 0xc]
push 4
push eax
call fcn.00442283
mov edi, eax
add edi, dword [ebp - 0x4c]
lea eax, [ebx + 0x85]
adc edx, dword [ebp - 0x48]
push 4
push eax
mov dword [ebp + 0x18], edx
call fcn.00442283
push 0
push dword [ebp + 0x18]
mov dword [ebp - 0x28], eax
push edi
push dword [ebp + 8]
call fcn.0043f790
add esp, 0x20
cmp eax, edi
jne 0x449c07
cmp edx, dword [ebp + 0x18]
jne 0x449c07
xor edi, edi
push edi
lea eax, [ebp - 8]
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
cmp esi, dword [ebp - 8]
je 0x449c0f
or eax, 0xffffffff
jmp 0x449f9b
cmp dword [ebp - 0x50], edi
mov dword [ebp + 0x18], edi
jl 0x449c94
jg 0x449c1e
cmp dword [ebp - 0x54], edi
jbe 0x449c94
lea edi, [ebx + 0x19]
cmp byte [edi - 6], 0x34
jne 0x449c75
movzx esi, byte [edi - 1]
push esi
push edi
call fcn.00442283
mov dword [ebp - 0x64], eax
lea eax, [esi + edi]
pop ecx
pop ecx
movzx ecx, byte [eax]
lea esi, [eax + ecx + 1]
movzx ecx, byte [esi]
movsx eax, byte [ebp - 1]
inc esi
cmp ecx, eax
mov dword [ebp - 0x60], edx
mov dword [ebp - 0x24], ecx
jl 0x449c75
push eax
push esi
lea eax, [ebx + 0xffc00]
push eax
call dword [sym.imp.shlwapi.dll_StrCmpNIA]
test eax, eax
jne 0x449c75
movsx eax, byte [ebp - 1]
cmp eax, dword [ebp - 0x24]
je 0x449c8d
cmp byte [eax + esi], 0
je 0x449c8d
inc dword [ebp + 0x18]
mov eax, dword [ebp + 0x18]
add edi, dword [ebp + 0x10]
cdq
cmp edx, dword [ebp - 0x50]
jl 0x449c21
jg 0x449c94
cmp eax, dword [ebp - 0x54]
jb 0x449c21
jmp 0x449c94
xor eax, eax
cmp dword [ebp - 0x64], eax
jne 0x449c9b
xor eax, eax
jmp 0x449f9b
cmp dword [ebp - 0x28], eax
mov dword [ebp - 0x20], eax
jle 0x449f7e
mov esi, dword [ebp + 0xc]
lea eax, [ebx + 0x19]
mov ecx, eax
add esi, 0x10
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x20]
cdq
cmp edx, dword [ebp - 0x50]
jg 0x449f7e
jl 0x449ccd
cmp eax, dword [ebp - 0x54]
jae 0x449f7e
cmp byte [ecx - 6], 0x51
jne 0x449f66
movzx edi, byte [ecx - 1]
inc dword [ebp - 0x2c]
push edi
push ecx
call fcn.00442283
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x24]
add eax, edi
movzx ecx, byte [eax]
lea eax, [eax + ecx + 1]
movzx ecx, byte [eax]
lea edi, [eax + ecx + 0x17]
movzx eax, byte [edi]
lea edi, [edi + eax + 0x11]
movzx eax, byte [edi]
push eax
inc edi
push edi
mov dword [ebp + 0xc], eax
call fcn.00442283
add esp, 0x10
push edx
push eax
push dword [ebp - 0x58]
mov dword [esi], eax
push dword [ebp - 0x5c]
mov dword [esi + 4], edx
call fcn.004ad070
mov dword [esi], eax
mov eax, dword [ebp + 0xc]
push 0x10
lea edi, [edi + eax + 4]
lea eax, [esi + 0x10]
push 0
push eax
mov dword [esi + 4], edx
call fcn.004acf60
mov al, byte [edi]
mov byte [esi + 0x10], al
mov eax, dword [ebp - 0xc]
inc edi
inc eax
push 4
push edi
mov dword [ebp - 0x48], eax
mov dword [esi + 8], eax
call fcn.00442283
mov dword [esi + 0x20], eax
lea eax, [edi + 4]
push 2
push eax
mov dword [ebp + 0xc], eax
call fcn.00442283
add dword [ebp + 0xc], 2
push 2
push dword [ebp + 0xc]
mov dword [esi + 0x24], eax
call fcn.00442283
mov dword [esi + 0x26], eax
mov eax, dword [ebp + 0xc]
add eax, 2
push 8
push eax
lea eax, [esi + 0x28]
push eax
call fcn.004143a0
xor ecx, ecx
add edi, 0x10
add esp, 0x30
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], ecx
cmp byte [edi], cl
jbe 0x449daa
movzx eax, byte [edi + 1]
cdq
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], edx
mov edi, ebx
mov dword [esi - 8], ecx
mov dword [esi - 4], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], edi
cmp byte [edi + 0x13], 0x32
jne 0x449ef1
movzx eax, byte [edi + 0x18]
movzx ecx, byte [edi + eax + 0x19]
add ecx, edi
add eax, ecx
movzx ecx, byte [eax + 0x38]
push ecx
add eax, 0x39
push eax
call fcn.00442283
cmp dword [ebp - 0x34], eax
pop ecx
pop ecx
jne 0x449ef1
movzx eax, byte [edi + 0x18]
push eax
lea eax, [edi + 0x19]
push eax
call fcn.00442283
and dword [ebp - 0x10], 0
and dword [ebp + 0xc], 0
pop ecx
pop ecx
mov ecx, ebx
mov dword [ebp - 0x40], eax
mov dword [ebp + 0x18], ecx
cmp byte [ecx + 0x13], 0x33
jne 0x449ecb
movzx edi, byte [ecx + 0x18]
lea eax, [ecx + edi]
movzx edx, byte [eax + 0x19]
mov dword [ebp - 0x1c], edx
add edx, ecx
movzx edx, byte [edx + edi + 0x36]
add edx, dword [ebp - 0x1c]
add eax, 0x1a
add ecx, edx
add ecx, edi
mov dword [ebp - 0x3c], edx
movzx edx, byte [ecx + 0x37]
push edx
add ecx, 0x38
push ecx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x44], eax
call fcn.00442283
mov edx, dword [ebp - 0x38]
pop ecx
pop ecx
mov ecx, dword [ebp + 0xc]
add ecx, edx
add ecx, dword [ebp - 0x3c]
add ecx, edi
cmp dword [ebp - 0x40], eax
lea ecx, [ecx + ebx + 0x38]
mov dword [ebp - 0x38], ecx
jne 0x449ec5
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0xc]
add eax, ecx
add eax, edi
add ebx, eax
lea eax, [ebx + 0x2e]
push 8
push eax
call fcn.00442283
mov edi, eax
mov eax, edx
push 8
add ebx, 0x26
push ebx
mov dword [ebp - 0x3c], eax
call fcn.00442283
add esp, 0x10
push dword [ebp - 0x58]
add edi, eax
mov eax, dword [ebp - 0x3c]
push dword [ebp - 0x5c]
adc eax, edx
add edi, dword [ebp + 0x1c]
adc eax, dword [ebp + 0x20]
push eax
push edi
call fcn.004ad070
mov edi, eax
mov eax, dword [ebp - 0x38]
movzx ecx, byte [eax]
push ecx
inc eax
push eax
mov ebx, edx
call fcn.00442283
cmp dword [ebp - 0x64], eax
pop ecx
pop ecx
je 0x449f14
mov ebx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x14]
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x10]
inc dword [ebp - 0x10]
add dword [ebp + 0xc], eax
add ecx, eax
mov eax, dword [ebp - 0x10]
cdq
cmp edx, dword [ebp - 0x50]
mov dword [ebp + 0x18], ecx
jl 0x449e08
jg 0x449ef1
cmp eax, dword [ebp - 0x54]
jb 0x449e08
inc dword [ebp - 0x18]
mov eax, dword [ebp - 0x18]
add edi, dword [ebp + 0x10]
cdq
cmp edx, dword [ebp - 0x50]
mov dword [ebp - 0x14], edi
jl 0x449db8
jg 0x449f66
cmp eax, dword [ebp - 0x54]
jb 0x449db8
jmp 0x449f66
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x1c]
mov dword [esi - 8], edi
mov dword [esi - 4], ebx
lea edi, [ecx + eax]
jmp 0x449f4e
cmp byte [ecx], 0x2d
jne 0x449f4d
inc ecx
xor eax, eax
jmp 0x449f46
mov dl, byte [ecx]
cmp dl, 0x30
jl 0x449f4a
cmp dl, 0x39
jg 0x449f4a
movsx edx, dl
lea eax, [eax + eax*4]
lea eax, [edx + eax*2 - 0x30]
inc ecx
cmp ecx, edi
jb 0x449f2f
mov dword [esi + 8], eax
inc ecx
cmp ecx, edi
jb 0x449f25
mov eax, dword [ebp - 0x48]
add esi, 0x90
cmp eax, dword [ebp - 0x28]
mov dword [ebp - 0xc], eax
jge 0x449f7e
mov ebx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
add ecx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x28]
inc dword [ebp - 0x20]
cmp dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], ecx
jl 0x449cb5
push dword [ebp - 0xc]
push 0x3542
push str._d:__nPart_d_r_n
push 0x4db0e0
call fcn.00410fbb
mov eax, dword [ebp - 0xc]
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret