Function at 0x536074
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 0x31
push 0
push 0
dec ecx
jne 0x53607d
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, eax
lea eax, [ebp - 4]
call fcn.00404eac
lea eax, [ebp - 8]
call fcn.00404eac
lea eax, [ebp + 8]
call fcn.00404eac
xor eax, eax
push ebp
push 0x53687b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00404c1c
jne 0x5360de
push 0
mov cx, word [0x536890]
xor edx, edx
mov eax, 0x536898
call fcn.00494a14
jmp 0x5367af
cmp byte [esi + 0x452], 0
je 0x53610d
mov eax, dword [ebp + 8]
xor edx, edx
call fcn.00404c1c
jne 0x53610d
push 0
mov cx, word [0x536890]
xor edx, edx
mov eax, 0x5368cc
call fcn.00494a14
jmp 0x5367af
lea eax, [ebp - 0xf0]
mov edx, 0xcc
call fcn.0040780c
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0xf0]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00533318
mov edi, eax
xor ebx, ebx
test edi, edi
jne 0x536144
mov bl, 1
jmp 0x5361cd
push 0
lea eax, [ebp - 0x100]
push eax
lea edx, [ebp - 0x10c]
mov eax, edi
call fcn.004c02b8
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x108], eax
mov byte [ebp - 0x104], 0xb
lea edx, [ebp - 0x108]
xor ecx, ecx
mov eax, 0x5369c0
call fcn.0040a8c8
mov edx, dword [ebp - 0x100]
lea eax, [ebp - 0xfc]
call fcn.0040441c
mov eax, dword [ebp - 0xfc]
lea edx, [ebp - 0xf8]
call fcn.00534350
mov edx, dword [ebp - 0xf8]
lea eax, [ebp - 0xf4]
call fcn.00404a78
mov eax, dword [ebp - 0xf4]
mov cx, word [0x536ab8]
mov dl, 3
call fcn.00494a14
cmp eax, 6
jne 0x5361cd
mov bl, 1
test bl, bl
je 0x5367af
cmp byte [esi + 0x453], 0
je 0x5361ee
mov edx, 0x536ac0
mov eax, dword [esi + 0x41c]
call fcn.00493350
cmp byte [esi + 0x454], 0
je 0x536286
cmp byte [esi + 0x453], 0
je 0x536234
lea edx, [ebp - 0x110]
mov ebx, dword [esi + 0x41c]
mov eax, ebx
call fcn.00493320
lea eax, [ebp - 0x110]
mov edx, 0x536b00
call fcn.00404b10
mov edx, dword [ebp - 0x110]
mov eax, ebx
call fcn.00493350
lea edx, [ebp - 0x114]
mov ebx, dword [esi + 0x41c]
mov eax, ebx
call fcn.00493320
lea eax, [ebp - 0x114]
mov edx, 0x536b08
call fcn.00404b10
mov edx, dword [ebp - 0x114]
mov eax, ebx
call fcn.00493350
lea edx, [ebp - 0x118]
mov eax, dword [esi + 0x464]
call fcn.004863ec
mov edx, dword [ebp - 0x118]
mov eax, dword [esi + 0x41c]
call fcn.00493300
mov eax, dword [esi + 0x41c]
mov edx, dword [eax]
call dword [edx + 0x3c]
test al, al
je 0x5367af
lea edx, [ebp - 0x10]
mov eax, dword [esi + 0x41c]
call fcn.00493244
cmp byte [esi + 0x453], 0
je 0x5365f0
mov eax, dword [esi + 0x41c]
call fcn.004351a8
dec eax
jne 0x5365f0
lea edx, [ebp - 0x120]
mov eax, dword [ebp - 0x10]
call fcn.00486424
mov eax, dword [ebp - 0x120]
lea edx, [ebp - 0x11c]
call fcn.00485ed4
mov eax, dword [ebp - 0x11c]
mov edx, 0x536b34
call fcn.00404c1c
je 0x536304
lea eax, [ebp - 0x10]
mov edx, 0x536b34
call fcn.00404b10
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x128]
mov edx, dword [esi + 0x458]
call fcn.00404a78
mov eax, dword [ebp - 0x128]
lea edx, [ebp - 0x124]
call fcn.0048628c
lea eax, [ebp - 0x124]
push eax
lea ecx, [ebp - 0x134]
mov dx, 0x20
mov eax, dword [esi + 0x45c]
call fcn.0052ff14
mov eax, dword [ebp - 0x134]
lea ecx, [ebp - 0x130]
mov dx, 0x2f
call fcn.0052ff14
mov eax, dword [ebp - 0x130]
lea ecx, [ebp - 0x12c]
mov dx, 0x5c
call fcn.0052ff14
mov edx, dword [ebp - 0x12c]
pop eax
call fcn.00404b10
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x108], eax
mov byte [ebp - 0x104], 0xf
lea edx, [ebp - 0x108]
xor ecx, ecx
mov eax, 0x536b44
call fcn.0040a8c8
cmp byte [esi + 0x451], 0
je 0x5364af
lea edx, [ebp - 0x138]
mov eax, dword [esi + 0x35c]
call fcn.0048fb40
mov eax, dword [ebp - 0x138]
push eax
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x13c]
mov eax, dword [esi + 0x304]
call fcn.00490314
mov eax, dword [ebp - 0x13c]
push eax
lea edx, [ebp - 0x140]
mov eax, dword [esi + 0x3b0]
call fcn.0048fb40
mov edx, dword [ebp - 0x140]
mov eax, esi
pop ecx
call fcn.00535e40
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
mov edx, 0x536ba8
call fcn.00404b10
mov eax, dword [ebp - 0x24]
call fcn.00404454
mov edi, eax
test edi, edi
jle 0x536569
mov ebx, 1
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax + ebx - 1]
lea ecx, [ebp - 0x14c]
mov edx, 2
call fcn.00409650
mov eax, dword [ebp - 0x14c]
lea edx, [ebp - 0x148]
call fcn.00408d8c
mov edx, dword [ebp - 0x148]
lea eax, [ebp - 0x144]
call fcn.00404a78
mov edx, dword [ebp - 0x144]
lea eax, [ebp - 0x14]
call fcn.00404b10
mov eax, dword [ebp - 0x24]
call fcn.00404454
cmp ebx, eax
je 0x5364a6
lea eax, [ebp - 0x14]
mov edx, 0x536bc4
call fcn.00404b10
inc dword [ebp - 0xc]
cmp dword [ebp - 0xc], 0x14
jle 0x5364a6
lea eax, [ebp - 0x14]
mov edx, 0x536bcc
call fcn.00404b10
xor eax, eax
mov dword [ebp - 0xc], eax
inc ebx
dec edi
jne 0x53642a
jmp 0x536569
lea eax, [ebp - 0x150]
push eax
mov al, byte [0x536bd4]
push eax
push 0
lea eax, [ebp - 0x164]
push eax
lea edx, [ebp - 0x168]
mov eax, dword [esi + 0x3b0]
call fcn.0048fb40
mov eax, dword [ebp - 0x168]
mov ecx, 0x536bdc
mov edx, 0x536be8
call fcn.00485f40
mov eax, dword [ebp - 0x164]
mov dword [ebp - 0x160], eax
mov byte [ebp - 0x15c], 0xf
mov al, byte [0x536bd4]
push eax
push 0
lea eax, [ebp - 0x16c]
push eax
lea edx, [ebp - 0x170]
mov eax, dword [esi + 0x304]
call fcn.00490314
mov eax, dword [ebp - 0x170]
mov ecx, 0x536bdc
mov edx, 0x536be8
call fcn.00485f40
mov eax, dword [ebp - 0x16c]
mov dword [ebp - 0x158], eax
mov byte [ebp - 0x154], 0xf
lea edx, [ebp - 0x160]
mov ecx, 1
mov eax, 0x536bf0
call fcn.0040a8c8
mov edx, dword [ebp - 0x150]
lea eax, [ebp - 0x14]
call fcn.00404b10
cmp byte [esi + 0x446], 0
je 0x5365a0
mov dl, 1
mov eax, dword [0x483798]
call fcn.004848f8
mov ebx, eax
mov edx, dword [ebp - 0x14]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov edx, dword [ebp - 0x10]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x78]
mov eax, ebx
call fcn.00403334
jmp 0x5367af
mov dl, 1
mov eax, dword [0x41adb4]
call fcn.00403304
mov ebx, eax
lea eax, [ebp - 0x174]
mov edx, dword [ebp - 0x14]
call fcn.0040441c
mov edx, dword [ebp - 0x174]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x2c]
lea eax, [ebp - 0x178]
mov edx, dword [ebp - 0x10]
call fcn.0040441c
mov edx, dword [ebp - 0x178]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x74]
mov eax, ebx
call fcn.00403334
jmp 0x5367af
cmp byte [esi + 0x454], 0
je 0x536609
mov eax, dword [esi + 0x41c]
call fcn.004351a8
cmp eax, 2
je 0x536628
cmp byte [esi + 0x453], 0
jne 0x5367af
mov eax, dword [esi + 0x41c]
call fcn.004351a8
dec eax
jne 0x5367af
cmp byte [esi + 0x451], 0
je 0x5366d6
lea edx, [ebp - 0x17c]
mov eax, dword [esi + 0x35c]
call fcn.0048fb40
mov eax, dword [ebp - 0x17c]
push eax
lea eax, [ebp - 0x24]
push eax
lea edx, [ebp - 0x180]
mov eax, dword [esi + 0x304]
call fcn.00490314
mov eax, dword [ebp - 0x180]
push eax
lea edx, [ebp - 0x184]
mov eax, dword [esi + 0x3b0]
call fcn.0048fb40
mov edx, dword [ebp - 0x184]
mov eax, esi
pop ecx
call fcn.00535e40
push 0
push 2
push 0x80
push 0
mov eax, dword [ebp - 0x10]
call fcn.00404af4
xor ecx, ecx
mov edx, 0x40000000
call fcn.00486f44
mov ebx, eax
cmp ebx, 0xffffffff
je 0x5367af
push 0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x24]
call fcn.00404454
push eax
mov eax, dword [ebp - 0x24]
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle
jmp 0x5367af
cmp byte [esi + 0x446], 0
je 0x53674b
push 0
push 2
push 0x80
push 0
mov eax, dword [ebp - 0x10]
call fcn.00404af4
xor ecx, ecx
mov edx, 0x40000000
call fcn.00486f44
mov ebx, eax
cmp ebx, 0xffffffff
je 0x53674b
mov word [ebp - 0x16], 0xfeff
push 0
lea eax, [ebp - 0x1c]
push eax
push 2
lea eax, [ebp - 0x16]
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
lea eax, [ebp - 0x20]
mov edx, 0x536c24
call fcn.00404900
push 0
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
call fcn.00404b04
add eax, eax
push eax
mov eax, dword [ebp - 0x20]
push eax
push ebx
call sub.kernel32.dll_WriteFile_1
push ebx
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x10]
call fcn.00404af4
mov ebx, eax
push ebx
lea edx, [ebp - 0x188]
mov eax, dword [esi + 0x3b0]
call fcn.0048fb40
mov eax, dword [ebp - 0x188]
call fcn.00404af4
push eax
push 0x536c5c
push 0x536c68
call sub.kernel32.dll_WritePrivateProfileStringW
push ebx
lea edx, [ebp - 0x18c]
mov eax, dword [esi + 0x304]
call fcn.00490314
mov eax, dword [ebp - 0x18c]
call fcn.00404af4
push eax
push 0x536c9c
push 0x536c68
call sub.kernel32.dll_WritePrivateProfileStringW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x536885
lea eax, [ebp - 0x18c]
mov edx, 5
call fcn.004048b8
lea eax, [ebp - 0x178]
mov edx, 2
call fcn.004041a8
lea eax, [ebp - 0x170]
mov edx, 4
call fcn.004048b8
lea eax, [ebp - 0x150]
call fcn.004048a0
lea eax, [ebp - 0x14c]
mov edx, 2
call fcn.004041a8
lea eax, [ebp - 0x144]
mov edx, 0xe
call fcn.004048b8
lea eax, [ebp - 0x10c]
call fcn.00404184
lea eax, [ebp - 0x100]
call fcn.004048a0
lea eax, [ebp - 0xfc]
mov edx, 2
call fcn.004041a8
lea eax, [ebp - 0xf4]
call fcn.004048a0
lea eax, [ebp - 0x24]
call fcn.00404184
lea eax, [ebp - 0x20]
call fcn.004048a0
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.004048b8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004048b8
lea eax, [ebp + 8]
call fcn.004048a0
ret