Function at 0x4297c0
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x404]
sub esp, 0x404
push 0xffffffffffffffff
push 0x4ab228
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x4ecba0]
xor eax, ebp
mov dword [ebp + 0x400], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x34], ecx
push 0x4b8133
lea ecx, [ebp - 0x30]
mov byte [ebp - 0x15], 1
call fcn.00404190
xor esi, esi
push 0x4b8133
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], esi
call fcn.00404190
push 0x4b8133
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 1
call fcn.00404190
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], esi
mov byte [ebp - 4], 3
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx ecx, word [ebp - 0x4a]
movzx eax, word [ebp - 0x4e]
movzx edx, word [ebp - 0x44]
movzx edi, word [ebp - 0x50]
push 0x4bffc8
push ecx
push eax
mov dword [ebp - 0x38], edx
movzx edx, word [ebp - 0x46]
push edi
mov dword [ebp - 0x2c], edx
movzx edx, word [ebp - 0x48]
push 0x4f3950
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x1c]
push str._s_04d_02d_02d._s
push eax
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x20], edx
call fcn.00402d80
mov eax, dword [ebp - 0x1c]
add esp, 0x1c
push esi
push ecx
add eax, 0xfffffff0
mov dword [ebp - 0x54], esp
mov esi, esp
push eax
call fcn.00409450
add eax, 0x10
add esp, 4
mov ecx, 0x4f3950
mov dword [esi], eax
call fcn.004583c0
test al, al
jne 0x4298dd
xor bl, bl
mov al, 0x21
cmp bl, al
jae 0x4298dd
movzx ecx, bl
mov edx, dword [ecx*4 + 0x4e9b58]
push edx
lea eax, [ebp - 0x14]
push 0x4bffb0
push eax
call fcn.00402da0
add esp, 0xc
inc bl
jmp 0x4298b7
lea ecx, [ebp - 0x14]
push 0x4bffac
push ecx
call fcn.00402da0
mov edx, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x40]
add esp, 8
push edx
push eax
push edi
lea ecx, [ebp - 0x14]
push str._04d_02d_02d_t
push ecx
call fcn.00402da0
mov edx, dword [ebp - 0x38]
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x20]
add esp, 0x14
push edx
push eax
push ecx
lea edx, [ebp - 0x14]
push str._02d:_02d:_02d_t
push edx
call fcn.00402da0
movzx esi, byte [ebp + 0x40c]
add esp, 0x14
push esi
lea eax, [ebp - 0x14]
push str._02d_t
push eax
call fcn.00402da0
imul esi, esi, 0x638
mov ecx, dword [0x4f0b40]
mov edx, dword [esi + ecx + 0x284]
add esp, 0xc
push edx
lea eax, [ebp - 0x14]
push str._02d_t
push eax
call fcn.00402da0
mov ecx, dword [0x4f0b40]
mov edx, dword [esi + ecx + 0x288]
add esp, 0xc
push edx
lea eax, [ebp - 0x14]
push 0x4bffb0
push eax
call fcn.00402da0
mov ecx, dword [0x4f0b40]
mov edx, dword [esi + ecx + 0x270]
add esp, 0xc
push edx
lea eax, [ebp - 0x14]
push 0x4bffb0
push eax
call fcn.00402da0
mov ecx, dword [0x4f0b40]
mov edx, dword [esi + ecx + 0x26c]
add esp, 0xc
push edx
lea eax, [ebp - 0x14]
push 0x4bffb0
push eax
call fcn.00402da0
mov ecx, dword [0x4f0b40]
mov edx, dword [esi + ecx + 0x280]
add esp, 0xc
push edx
lea eax, [ebp - 0x14]
push 0x4bffb0
push eax
call fcn.00402da0
mov ecx, dword [0x4f0b40]
mov edx, dword [esi + ecx + 0x278]
add esp, 0xc
push edx
lea eax, [ebp - 0x14]
push 0x4bffb0
push eax
call fcn.00402da0
mov ecx, dword [0x4f0b40]
mov edx, dword [esi + ecx + 0x27c]
add esp, 0xc
push edx
lea eax, [ebp - 0x14]
push 0x4bffb0
push eax
call fcn.00402da0
mov ecx, dword [0x4f0b40]
mov edx, dword [esi + ecx + 0x274]
add esp, 0xc
push edx
lea eax, [ebp - 0x14]
push 0x4bffb0
push eax
call fcn.00402da0
mov ecx, dword [0x4f0b40]
mov edx, dword [esi + ecx + 0x294]
add esp, 0xc
push edx
lea eax, [ebp - 0x14]
push 0x4bffb0
push eax
call fcn.00402da0
mov ecx, dword [0x4f0b40]
mov edx, dword [esi + ecx + 0x3b0]
add esp, 0xc
push edx
lea eax, [ebp - 0x14]
push 0x4bffb0
push eax
call fcn.00402da0
mov ecx, dword [0x4f0b40]
movsx edx, byte [esi + ecx + 0x269]
add esp, 0xc
push edx
lea eax, [ebp - 0x14]
push str._02d_t
push eax
call fcn.00402da0
mov ecx, dword [0x4f0b40]
movsx edx, byte [esi + ecx + 0x39]
add esp, 0xc
push edx
lea eax, [ebp - 0x14]
push 0x4bff80
push eax
call fcn.00402da0
mov edi, dword [ebp - 0x34]
add esp, 0xc
cmp byte [edi + 0x31d], 1
jne 0x429b87
movzx ecx, byte [edi + 0x632]
push ecx
lea edx, [ebp - 0x14]
push 0x4bff7c
push edx
call fcn.00402da0
add esp, 0xc
lea eax, [edi + 0x633]
push eax
lea ecx, [ebp - 0x14]
push 0x4bffb0
push ecx
call fcn.00402da0
add esp, 0xc
lea edx, [edi + 0x732]
push edx
lea eax, [ebp - 0x14]
push 0x4bffb0
push eax
call fcn.00402da0
add esp, 0xc
lea ecx, [edi + 0x831]
push ecx
lea edx, [ebp - 0x14]
push 0x4bffb0
push edx
call fcn.00402da0
add esp, 0xc
lea eax, [edi + 0x930]
push eax
lea ecx, [ebp - 0x14]
push 0x4bffb0
push ecx
call fcn.00402da0
add esp, 0xc
lea edx, [edi + 0xa2f]
push edx
lea eax, [ebp - 0x14]
push 0x4bffb0
push eax
call fcn.00402da0
add esp, 0xc
lea ecx, [ebp - 0x14]
push 0x4bff78
push ecx
call fcn.00402da0
movzx edx, byte [edi + 0xe2b]
add esp, 8
push edx
lea eax, [ebp - 0x14]
push 0x4bff7c
push eax
call fcn.00402da0
add esp, 0xc
jmp 0x429c0f
lea ecx, [ebp - 0x14]
push 0x4bff78
push ecx
call fcn.00402da0
add esp, 8
lea edx, [ebp - 0x14]
push 0x4bff78
push edx
call fcn.00402da0
add esp, 8
lea eax, [ebp - 0x14]
push 0x4bff78
push eax
call fcn.00402da0
add esp, 8
lea ecx, [ebp - 0x14]
push 0x4bff78
push ecx
call fcn.00402da0
add esp, 8
lea edx, [ebp - 0x14]
push 0x4bff78
push edx
call fcn.00402da0
add esp, 8
lea eax, [ebp - 0x14]
push 0x4bff78
push eax
call fcn.00402da0
add esp, 8
lea ecx, [ebp - 0x14]
push 0x4bff78
push ecx
call fcn.00402da0
add esp, 8
lea edx, [ebp - 0x14]
push 0x4bff78
push edx
call fcn.00402da0
add esp, 8
cmp byte [edi + 0x31d], 1
jne 0x429c32
lea eax, [edi + 0x31e]
push eax
lea ecx, [ebp - 0x14]
push 0x4bffb0
push ecx
call fcn.00402da0
add esp, 0xc
jmp 0x429c43
lea edx, [ebp - 0x14]
push 0x4bff78
push edx
call fcn.00402da0
add esp, 8
cmp byte [edi + 4], 1
lea ecx, [ebp - 0x14]
jne 0x429c76
movzx eax, byte [edi + 5]
push eax
push 0x4bff7c
push ecx
call fcn.00402da0
add esp, 0xc
lea edx, [edi + 6]
push edx
lea eax, [ebp - 0x14]
push 0x4bffb0
push eax
call fcn.00402da0
add esp, 0xc
jmp 0x429c95
push 0x4bff78
push ecx
call fcn.00402da0
add esp, 8
lea edx, [ebp - 0x14]
push 0x4bff78
push edx
call fcn.00402da0
add esp, 8
cmp byte [edi + 0x105], 1
lea ecx, [ebp - 0x14]
jne 0x429cd1
lea eax, [edi + 0x107]
push eax
push 0x4bffb0
push ecx
call fcn.00402da0
movzx edx, byte [edi + 0x206]
add esp, 0xc
push edx
lea eax, [ebp - 0x14]
push 0x4bff7c
push eax
call fcn.00402da0
add esp, 0xc
jmp 0x429cf0
push 0x4bff78
push ecx
call fcn.00402da0
add esp, 8
lea edx, [ebp - 0x14]
push 0x4bff78
push edx
call fcn.00402da0
add esp, 8
cmp byte [edi + 0x31d], 1
jne 0x429d3b
mov eax, dword [0x4f0b40]
cmp byte [esi + eax + 0x636], 1
jne 0x429d22
mov ecx, dword [0x4f0600]
push ecx
lea edx, [ebp - 0x14]
push 0x4bffb0
push edx
call fcn.00402da0
add esp, 0xc
jmp 0x429d4c
mov eax, dword [0x4f0604]
push eax
lea ecx, [ebp - 0x14]
push 0x4bffb0
push ecx
call fcn.00402da0
add esp, 0xc
jmp 0x429d4c
lea edx, [ebp - 0x14]
push 0x4bff78
push edx
call fcn.00402da0
add esp, 8
cmp byte [edi + 0x41d], 1
jne 0x429d97
mov eax, dword [0x4f0b40]
cmp byte [esi + eax + 0x637], 1
jne 0x429d7e
mov ecx, dword [0x4f0600]
push ecx
lea edx, [ebp - 0x14]
push 0x4bffb0
push edx
call fcn.00402da0
add esp, 0xc
jmp 0x429da8
mov eax, dword [0x4f0604]
push eax
lea ecx, [ebp - 0x14]
push 0x4bffb0
push ecx
call fcn.00402da0
add esp, 0xc
jmp 0x429da8
lea edx, [ebp - 0x14]
push 0x4bff78
push edx
call fcn.00402da0
add esp, 8
cmp byte [edi + 4], 1
jne 0x429df0
mov eax, dword [0x4f0b40]
cmp byte [esi + eax + 0x638], 1
jne 0x429dd7
mov ecx, dword [0x4f0600]
push ecx
lea edx, [ebp - 0x14]
push 0x4bffb0
push edx
call fcn.00402da0
add esp, 0xc
jmp 0x429e01
mov eax, dword [0x4f0604]
push eax
lea ecx, [ebp - 0x14]
push 0x4bffb0
push ecx
call fcn.00402da0
add esp, 0xc
jmp 0x429e01
lea edx, [ebp - 0x14]
push 0x4bff78
push edx
call fcn.00402da0
add esp, 8
cmp byte [edi + 4], 1
jne 0x429e49
mov eax, dword [0x4f0b40]
cmp byte [esi + eax + 0x639], 1
jne 0x429e30
mov ecx, dword [0x4f0600]
push ecx
lea edx, [ebp - 0x14]
push 0x4bffb0
push edx
call fcn.00402da0
add esp, 0xc
jmp 0x429e5a
mov eax, dword [0x4f0604]
push eax
lea ecx, [ebp - 0x14]
push 0x4bffb0
push ecx
call fcn.00402da0
add esp, 0xc
jmp 0x429e5a
lea edx, [ebp - 0x14]
push 0x4bff78
push edx
call fcn.00402da0
add esp, 8
cmp byte [edi + 0x105], 1
jne 0x429ea5
mov eax, dword [0x4f0b40]
cmp byte [esi + eax + 0x63a], 1
jne 0x429e8c
mov ecx, dword [0x4f0600]
push ecx
lea edx, [ebp - 0x14]
push 0x4bffb0
push edx
call fcn.00402da0
add esp, 0xc
jmp 0x429eb6
mov eax, dword [0x4f0604]
push eax
lea ecx, [ebp - 0x14]
push 0x4bffb0
push ecx
call fcn.00402da0
add esp, 0xc
jmp 0x429eb6
lea edx, [ebp - 0x14]
push 0x4bff78
push edx
call fcn.00402da0
add esp, 8
cmp byte [edi + 0x209], 1
jne 0x429f01
mov eax, dword [0x4f0b40]
cmp byte [esi + eax + 0x63b], 1
jne 0x429ee8
mov ecx, dword [0x4f0600]
push ecx
lea edx, [ebp - 0x14]
push 0x4bffb0
push edx
call fcn.00402da0
add esp, 0xc
jmp 0x429f12
mov eax, dword [0x4f0604]
push eax
lea ecx, [ebp - 0x14]
push 0x4bffb0
push ecx
call fcn.00402da0
add esp, 0xc
jmp 0x429f12
lea edx, [ebp - 0x14]
push 0x4bff78
push edx
call fcn.00402da0
add esp, 8
lea eax, [ebp - 0x14]
push 0x4bff78
push eax
call fcn.00402da0
add esp, 8
push 0x400
lea ecx, [ebp]
push 0
push ecx
call fcn.0048f850
mov eax, dword [ebp - 0x14]
add esp, 0xc
cmp dword [eax - 4], 1
jle 0x429f4e
mov edx, dword [eax - 0xc]
push edx
lea ecx, [ebp - 0x14]
call fcn.004023b0
mov eax, dword [ebp - 0x14]
push eax
lea eax, [ebp]
push 0x400
push eax
call fcn.0049006b
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 8]
push ecx
push eax
call fcn.004900d3
add esp, 0x14
test eax, eax
jl 0x42a08c
mov ecx, dword [ebp - 0x14]
cmp eax, dword [ecx - 8]
jg 0x42a08c
push 0
push 0x80000080
push 4
mov dword [ecx - 0xc], eax
mov ecx, dword [ebp - 0x14]
push 0
push 6
mov byte [eax + ecx], 0
mov edx, dword [ebp - 0x1c]
push 0x40000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
test esi, esi
je 0x429fe8
push 2
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [ebp]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x429fc0
push 0
lea ecx, [ebp - 0x24]
push ecx
sub eax, edx
push eax
lea edx, [ebp]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x1c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42a019
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42a03c
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x42a062
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [ebp - 0x15]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x400]
xor ecx, ebp
call fcn.0048f35c
add ebp, 0x404
mov esp, ebp
pop ebp
ret 4
push 0x80070057
call fcn.00402240
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x42a0a4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x15], 0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
movzx eax, byte [ebp + 0x40c]
push eax
push 0x4bd
push str.Ini::vLogMPResult
push str._s:_d:_vLogMPResult:___d____dwErrorCode__d
call fcn.0044b650
add esp, 0x14
mov dword [ebp - 4], 2
mov eax, 0x429ff6
ret