Function at 0x428f40
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x45a3b5
mov eax, dword fs:[0]
push eax
sub esp, 0x6d4
mov eax, dword [0x46e3d0]
xor eax, esp
mov dword [esp + 0x6d0], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x46e3d0]
xor eax, esp
push eax
lea eax, [esp + 0x6e8]
mov dword fs:[0], eax
mov eax, dword [esp + 0x6f8]
xor ebp, ebp
push 0x206
lea ecx, [esp + 0xe2]
push ebp
push ecx
mov dword [esp + 0x3c], eax
mov word [esp + 0xe8], bp
call fcn.00443e10
mov edx, dword [esp + 0x708]
add esp, 0xc
push edx
push ebp
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebp
je 0x429790
push 0x208
lea eax, [esp + 0xe0]
push ebp
push eax
call fcn.00443e10
add esp, 0xc
push 0x104
lea ecx, [esp + 0xe0]
push ecx
push ebp
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebp
je 0x429790
cmp dword [0x471ee4], ebp
je 0x429050
push 0x471eec
mov ebx, str.Bin_
lea esi, [esp + 0x38]
call fcn.00408750
add esp, 4
push 0xffffffffffffffff
push ebp
mov ecx, 0x471ff4
mov dword [esp + 0x6f8], ebp
call fcn.00406cc0
mov dword [esp + 0x6f0], 0xffffffff
cmp dword [esp + 0x4c], 8
jb 0x429050
mov edx, dword [esp + 0x38]
push edx
call fcn.0043ef40
add esp, 4
cmp dword [0x472008], ebp
jne 0x429064
cmp dword [0x472024], ebp
je 0x429790
mov ebx, 7
lea eax, [esp + 0xdc]
mov dword [esp + 0xa0], ebx
mov dword [esp + 0x9c], ebp
mov word [esp + 0x8c], bp
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x429090
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xe0]
push eax
lea esi, [esp + 0x90]
call fcn.00406f20
mov edi, esi
mov dword [esp + 0x6f0], 1
call fcn.00426f50
mov esi, dword [esp + 0x30]
push esi
push 0x471ff4
lea edi, [esp + 0x58]
call fcn.00414ca0
add esp, 8
mov byte [esp + 0x6f0], 2
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0x74]
mov dword [esp + 0x8c], ebx
mov dword [esp + 0x88], ebp
mov word [esp + 0x78], bp
call fcn.00406cc0
mov byte [esp + 0x6f0], 4
cmp dword [esp + 0x68], 8
jb 0x42911f
mov ecx, dword [esp + 0x54]
push ecx
call fcn.0043ef40
add esp, 4
lea edi, [esp + 0x6c]
mov dword [esp + 0x68], ebx
mov dword [esp + 0x64], ebp
mov word [esp + 0x54], bp
call fcn.00426f50
push esi
push 0x472010
lea edi, [esp + 0x1c]
call fcn.00414ca0
add esp, 8
mov byte [esp + 0x6f0], 5
push 0xffffffffffffffff
push ebp
lea ecx, [esp + 0xac]
mov dword [esp + 0xc4], ebx
mov dword [esp + 0xc0], ebp
mov word [esp + 0xb0], bp
call fcn.00406cc0
mov byte [esp + 0x6f0], bl
cmp dword [esp + 0x2c], 8
jb 0x42918f
mov edx, dword [esp + 0x18]
push edx
call fcn.0043ef40
add esp, 4
lea edi, [esp + 0xa4]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebp
mov word [esp + 0x18], bp
call fcn.00426f50
push 0xffffffffffffffff
push ebp
mov eax, 0x472064
lea ecx, [esp + 0xc8]
mov dword [esp + 0xe0], ebx
mov dword [esp + 0xdc], ebp
mov word [esp + 0xcc], bp
call fcn.00406cc0
lea edi, [esp + 0xc0]
mov byte [esp + 0x6f0], 8
call fcn.00426f50
cmp dword [esp + 0xa0], 8
mov eax, dword [esp + 0x8c]
jae 0x4291fe
lea eax, [esp + 0x8c]
push eax
push str._setup_path1___s__n
push 0x400
lea eax, [esp + 0x2f0]
push 0x200
push eax
call fcn.0043ef21
add esp, 0x14
lea ecx, [esp + 0x50]
call fcn.0042a750
mov byte [esp + 0x6f0], 9
lea eax, [esp + 0x2e4]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebp
mov word [esp + 0x18], bp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x429246
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x2e8]
push ecx
lea esi, [esp + 0x1c]
call fcn.00406f20
mov edx, esi
push ebp
push edx
or eax, 0xffffffff
lea esi, [esp + 0x58]
mov byte [esp + 0x6f8], 0xa
call fcn.00406d90
mov esi, 8
cmp dword [esp + 0x2c], esi
jb 0x429297
mov eax, dword [esp + 0x18]
push eax
call fcn.0043ef40
add esp, 4
cmp dword [esp + 0x68], esi
mov edx, dword [esp + 0x54]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebp
mov word [esp + 0x18], bp
jae 0x4292b2
lea edx, [esp + 0x54]
mov edi, dword [0x471b30]
cmp edi, ebp
je 0x4292ec
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4292c1
sub eax, esi
sar eax, 1
push edi
lea ecx, [eax + eax]
push ecx
push 1
push edx
call fcn.0043fe21
mov edx, dword [0x471b30]
push edx
call fcn.004402ef
add esp, 0x14
mov byte [esp + 0x6f0], 8
cmp dword [esp + 0x68], 8
jb 0x429308
mov eax, dword [esp + 0x54]
push eax
call fcn.0043ef40
add esp, 4
cmp dword [esp + 0x84], 8
mov eax, dword [esp + 0x70]
jae 0x42931a
lea eax, [esp + 0x70]
push eax
push str._setup_path2___s__n
push 0x400
lea ecx, [esp + 0x2f0]
push 0x200
push ecx
call fcn.0043ef21
add esp, 0x14
lea ecx, [esp + 0x50]
call fcn.0042a750
mov byte [esp + 0x6f0], 0xb
lea eax, [esp + 0x2e4]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebp
mov word [esp + 0x18], bp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x429362
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x2e8]
push edx
lea esi, [esp + 0x1c]
call fcn.00406f20
mov eax, esi
push ebp
push eax
or eax, 0xffffffff
lea esi, [esp + 0x58]
mov byte [esp + 0x6f8], 0xc
call fcn.00406d90
mov esi, 8
cmp dword [esp + 0x2c], esi
jb 0x4293b3
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0043ef40
add esp, 4
cmp dword [esp + 0x68], esi
mov edx, dword [esp + 0x54]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebp
mov word [esp + 0x18], bp
jae 0x4293ce
lea edx, [esp + 0x54]
mov edi, dword [0x471b30]
cmp edi, ebp
je 0x42940a
mov eax, edx
lea esi, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4293e0
sub eax, esi
sar eax, 1
push edi
add eax, eax
push eax
push 1
push edx
call fcn.0043fe21
mov ecx, dword [0x471b30]
push ecx
call fcn.004402ef
add esp, 0x14
mov byte [esp + 0x6f0], 8
cmp dword [esp + 0x68], 8
jb 0x429426
mov edx, dword [esp + 0x54]
push edx
call fcn.0043ef40
add esp, 4
cmp dword [esp + 0xbc], 8
mov eax, dword [esp + 0xa8]
jae 0x42943e
lea eax, [esp + 0xa8]
push eax
push str._setup_path3___s__n
push 0x400
lea eax, [esp + 0x2f0]
push 0x200
push eax
call fcn.0043ef21
add esp, 0x14
lea ecx, [esp + 0x50]
call fcn.0042a750
mov byte [esp + 0x6f0], 0xd
lea eax, [esp + 0x2e4]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebp
mov word [esp + 0x18], bp
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x429486
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x2e8]
push ecx
lea esi, [esp + 0x1c]
call fcn.00406f20
mov edx, esi
push ebp
push edx
or eax, 0xffffffff
lea esi, [esp + 0x58]
mov byte [esp + 0x6f8], 0xe
call fcn.00406d90
mov esi, 8
cmp dword [esp + 0x2c], esi
jb 0x4294d7
mov eax, dword [esp + 0x18]
push eax
call fcn.0043ef40
add esp, 4
cmp dword [esp + 0x68], esi
mov edx, dword [esp + 0x54]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebp
mov word [esp + 0x18], bp
jae 0x4294f2
lea edx, [esp + 0x54]
mov edi, dword [0x471b30]
cmp edi, ebp
je 0x42952c
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x429501
sub eax, esi
sar eax, 1
push edi
lea ecx, [eax + eax]
push ecx
push 1
push edx
call fcn.0043fe21
mov edx, dword [0x471b30]
push edx
call fcn.004402ef
add esp, 0x14
mov byte [esp + 0x6f0], 8
cmp dword [esp + 0x68], 8
jb 0x429548
mov eax, dword [esp + 0x54]
push eax
call fcn.0043ef40
add esp, 4
cmp dword [esp + 0xd8], 8
mov eax, dword [esp + 0xc4]
jae 0x429560
lea eax, [esp + 0xc4]
push eax
push str._setup_path4___s__n
push 0x400
lea ecx, [esp + 0x2f0]
push 0x200
push ecx
call fcn.0043ef21
add esp, 0x14
lea ecx, [esp + 0x50]
call fcn.0042a750
mov byte [esp + 0x6f0], 0xf
lea eax, [esp + 0x2e4]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebp
mov word [esp + 0x18], bp
lea edx, [eax + 2]
jmp 0x4295b0
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x4295b0
sub eax, edx
sar eax, 1
push eax
lea edx, [esp + 0x2e8]
push edx
lea esi, [esp + 0x1c]
call fcn.00406f20
mov eax, esi
push ebp
push eax
or eax, 0xffffffff
lea esi, [esp + 0x58]
mov byte [esp + 0x6f8], 0x10
call fcn.00406d90
mov esi, 8
cmp dword [esp + 0x2c], esi
jb 0x429601
mov ecx, dword [esp + 0x18]
push ecx
call fcn.0043ef40
add esp, 4
cmp dword [esp + 0x68], esi
mov edx, dword [esp + 0x54]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x28], ebp
mov word [esp + 0x18], bp
jae 0x42961c
lea edx, [esp + 0x54]
mov edi, dword [0x471b30]
cmp edi, ebp
je 0x42965a
mov eax, edx
lea esi, [eax + 2]
jmp 0x429630
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x429630
sub eax, esi
sar eax, 1
push edi
add eax, eax
push eax
push 1
push edx
call fcn.0043fe21
mov ecx, dword [0x471b30]
push ecx
call fcn.004402ef
add esp, 0x14
mov byte [esp + 0x6f0], 8
cmp dword [esp + 0x68], 8
jb 0x429676
mov edx, dword [esp + 0x54]
push edx
call fcn.0043ef40
add esp, 4
cmp dword [esp + 0x84], 8
mov eax, dword [esp + 0x70]
jae 0x429688
lea eax, [esp + 0x70]
mov edi, dword [esp + 0x80]
push eax
mov eax, dword [esp + 0xa0]
lea ecx, [esp + 0x8c]
call fcn.00411e60
test eax, eax
je 0x4296e2
lea eax, [esp + 0xa4]
lea ecx, [esp + 0x88]
call fcn.00414d50
test al, al
jne 0x4296e2
lea eax, [esp + 0x88]
push eax
lea ebx, [esp + 0xc4]
call fcn.00426120
add esp, 4
test eax, eax
mov ebx, 7
jne 0x4296e2
xor esi, esi
jmp 0x4296e7
mov esi, 1
mov edi, 8
cmp dword [esp + 0xd8], edi
jb 0x429705
mov ecx, dword [esp + 0xc4]
push ecx
call fcn.0043ef40
add esp, 4
cmp dword [esp + 0xbc], edi
mov dword [esp + 0xd8], ebx
mov dword [esp + 0xd4], ebp
mov word [esp + 0xc4], bp
jb 0x429734
mov edx, dword [esp + 0xa8]
push edx
call fcn.0043ef40
add esp, 4
cmp dword [esp + 0x84], edi
mov dword [esp + 0xbc], ebx
mov dword [esp + 0xb8], ebp
mov word [esp + 0xa8], bp
jb 0x429760
mov eax, dword [esp + 0x70]
push eax
call fcn.0043ef40
add esp, 4
cmp dword [esp + 0xa0], edi
mov dword [esp + 0x84], ebx
mov dword [esp + 0x80], ebp
mov word [esp + 0x70], bp
jb 0x42978c
mov ecx, dword [esp + 0x8c]
push ecx
call fcn.0043ef40
add esp, 4
mov eax, esi
jmp 0x429792
xor eax, eax
mov ecx, dword [esp + 0x6e8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x6d0]
xor ecx, esp
call fcn.0043ef12
add esp, 0x6e0
ret