Function at 0x434291
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov esi, esp
cmp byte [0x43d090], 0
jne 0x4340b3
mov byte [0x43d090], 1
mov edx, dword [0x437040]
movzx ecx, word [edx]
xor eax, eax
cmp ecx, 0x5a4d
jne 0x433fcb
mov ecx, dword [edx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x433fcb
movzx edx, word [edx + ecx + 0x18]
cmp edx, 0x10b
mov edx, dword [0x437040]
jne 0x433fcb
movzx eax, word [edx + ecx + 6]
shl eax, 2
lea eax, [eax + eax*4]
add eax, 3
and eax, 0xfffffffc
call fcn.00401589
mov eax, esp
and eax, 0xfffffff0
mov esp, eax
mov dword [0x43d0c8], eax
mov dword [0x43d0a8], 0
mov ebx, 0x43a7f0
mov eax, 0x43a7f0
sub eax, ebx
cmp eax, 7
jle 0x4340b3
cmp eax, 0xc
jl 0x43402c
cmp dword [0x43a7f0], 0
jne 0x43403b
cmp dword [0x43a7f4], 0
jne 0x43403b
cmp dword [0x43a7f8], 0
mov eax, 0x43a7f0
mov ebx, 0x43a7fc
cmovne ebx, eax
cmp dword [ebx], 0
jne 0x43403b
cmp dword [ebx + 4], 0
je 0x4340bb
cmp ebx, 0x43a7f0
jae 0x434070
lea edi, [esi + 0x14]
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
add eax, dword [ecx + edx]
add ecx, edx
mov dword [esi + 0x14], eax
mov edx, edi
push 4
call 0x4341d2
mov edx, dword [0x437040]
add esp, 4
add ebx, 8
cmp ebx, 0x43a7f0
jb 0x434046
mov eax, dword [0x43d0a8]
test eax, eax
jle 0x4340b3
xor edi, edi
mov ebx, 8
mov ecx, dword [0x43d0c8]
mov edx, dword [ecx + ebx - 8]
test edx, edx
je 0x4340ab
lea eax, [esi + 0x1c]
push eax
push edx
push dword [ecx + ebx]
push dword [ecx + ebx - 4]
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov ecx, dword [0x43d0c8]
mov eax, dword [0x43d0a8]
inc edi
add ebx, 0x14
cmp edi, eax
jl 0x434086
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebx + 8]
cmp eax, 1
jne 0x4341c7
add ebx, 0xc
cmp ebx, 0x43a7f0
jae 0x434070
mov eax, dword [ebx + 4]
add eax, edx
mov edi, dword [ebx]
mov ecx, dword [ebx + 8]
mov dword [esi + 0x10], edi
mov edx, dword [edi + edx]
mov dword [esi + 8], edx
cmp cl, 0x20
mov dword [esi + 0xc], ecx
movzx edx, cl
mov dword [esi + 4], eax
je 0x43410e
cmp edx, 0x10
je 0x434112
cmp edx, 8
jne 0x4341bc
movzx eax, byte [eax]
lea edi, [eax - 0x100]
test al, al
jmp 0x43411e
mov edi, dword [eax]
jmp 0x434121
movzx eax, word [eax]
lea edi, [eax - 0x10000]
test ax, ax
cmovns edi, eax
mov eax, dword [esi + 0x10]
add eax, dword [0x437040]
sub edi, eax
add edi, dword [esi + 8]
mov dword [esi + 0x18], edi
cmp edx, 0x1f
ja 0x43415c
xor eax, eax
dec eax
mov ecx, edx
shl eax, cl
test dl, 0x20
mov ecx, 0
cmovne eax, ecx
not eax
cmp edi, eax
jg 0x4341aa
mov ecx, edx
dec cl
xor eax, eax
dec eax
shl eax, cl
cmp edi, eax
jl 0x4341aa
mov eax, dword [esi + 0xc]
cmp al, 8
mov edi, 1
je 0x434181
movzx eax, al
cmp eax, 0x20
je 0x43417c
cmp eax, 0x10
jne 0x434190
mov edi, 2
jmp 0x434181
mov edi, 4
mov ecx, dword [esi + 4]
lea edx, [esi + 0x18]
push edi
call 0x4341d2
add esp, 4
add ebx, 0xc
cmp ebx, 0x43a7f0
mov edx, dword [0x437040]
jb 0x4340d2
jmp 0x434070
push edi
push dword [esi + 8]
push dword [esi + 4]
push edx
push str._d_bit_pseudo_relocation_at__p_out_of_range__targeting__p__yielding_the_value__p._n
call 0x434344
push edx
push str.__Unknown_pseudo_relocation_bit_size__d._n
call 0x434344
push eax
push str.__Unknown_pseudo_relocation_protocol_version__d._n
call 0x434344
push ebp
push ebx
push edi
push esi
sub esp, 0x20
mov ebp, edx
mov esi, ecx
mov eax, dword [0x43d0a8]
test eax, eax
jle 0x434210
mov ecx, dword [0x43d0c8]
add ecx, 0x10
mov edx, eax
mov edi, dword [ecx - 4]
cmp edi, esi
ja 0x434205
mov ebx, dword [ecx]
add edi, dword [ebx + 8]
cmp edi, esi
ja 0x43430a
add ecx, 0x14
dec edx
jne 0x4341f1
mov dword [esp], ebp
jmp 0x434215
mov dword [esp], ebp
xor eax, eax
mov ebx, dword [0x437040]
movzx ecx, word [ebx]
cmp ecx, 0x5a4d
jne 0x43426e
mov ecx, dword [ebx + 0x3c]
cmp dword [ebx + ecx], 0x4550
jne 0x43426e
add ebx, ecx
movzx ecx, word [ebx + 0x18]
cmp ecx, 0x10b
jne 0x43426e
movzx ecx, word [ebx + 6]
test ecx, ecx
je 0x43426e
mov edx, esi
sub edx, dword [0x437040]
movzx edi, word [ebx + 0x14]
lea ebp, [ebx + edi + 0x18]
mov edi, dword [ebp + 0xc]
cmp edi, edx
ja 0x434268
mov ebx, dword [ebp + 8]
add ebx, edi
cmp ebx, edx
ja 0x434279
add ebp, 0x28
dec ecx
jne 0x434258
push esi
push str.Address__p_has_no_image_section
call 0x434344
mov ecx, dword [0x43d0c8]
lea ebx, [eax + eax*4]
mov dword [ecx + ebx*4 + 0x10], ebp
mov dword [ecx + ebx*4], 0
add edi, dword [0x437040]
inc ebx
add byte [ecx - 0x72f36684], cl
inc esp
and al, 4
push 0x1c
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x43431d
mov eax, dword [esp + 0x18]
cmp eax, 7
jle 0x4342c8
cmp eax, 8
mov ebp, dword [esp]
je 0x434304
cmp eax, 0x40
je 0x434304
cmp eax, 0x80
je 0x434304
jmp 0x4342da
mov ecx, 4
cmp eax, 2
mov ebp, dword [esp]
je 0x4342df
cmp eax, 4
je 0x434304
mov ecx, 0x40
mov eax, dword [esp + 4]
mov edx, dword [0x43d0c8]
lea edx, [edx + ebx*4]
mov dword [edx + 4], eax
mov edi, dword [esp + 0x10]
mov dword [edx + 8], edi
push edx
push ecx
push edi
push eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x434333
inc dword [0x43d0a8]
push dword [esp + 0x34]
push ebp
push esi
call fcn.0040307b
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [0x43d0c8]
push dword [eax + ebx*4 + 0xc]
push dword [ebp + 8]
push str.__VirtualQuery_failed_for__d_bytes_at_address__p
call 0x434344
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.__VirtualProtect_failed_with_code_0x_x
call 0x434344
push edi
push esi
push eax
mov esi, dword [esp + 0x10]
lea eax, [esp + 0x14]
mov dword [esp], eax
mov edi, dword [sym.imp.msvcrt.dll__iob]
mov eax, dword [edi]
add eax, 0x40
push eax
push 1
push 0x1b
push str.Mingw_w64_runtime_failure:_n
call sub.msvcrt.dll_fwrite
add esp, 0x10
mov eax, dword [edi]
add eax, 0x40
push dword [esp]
push esi
push eax
call sub.msvcrt.dll_vfprintf
add esp, 0xc
call sub.msvcrt.dll_abort
push ebx
mov eax, dword [esp + 8]
mov eax, dword [eax]
mov eax, dword [eax]
lea ecx, [eax + 0x3fffff73]
cmp ecx, 9
ja case.default.0x43439c
mov bl, 1
jmp dword [ecx*4 + 0x43a7c8]
xor ebx, ebx
push 0
push 8
call sub.msvcrt.dll_signal
add esp, 8
test eax, eax
je case.0x43439c.1073741678
cmp eax, 1
jne 0x4343fa
push 1
push 8
call sub.msvcrt.dll_signal
add esp, 8
xor eax, eax
dec eax
test bl, bl
jne 0x43443f
fninit
jmp 0x43443f
cmp eax, 0xc000001d
je case.0x43439c.1073741674
cmp eax, 0xc0000005
jne case.0x43439c.1073741678
push 0
push 0xb
call sub.msvcrt.dll_signal
add esp, 8
test eax, eax
je case.0x43439c.1073741678
cmp eax, 1
jne 0x434435
push 1
push 0xb
jmp 0x434417
push 8
jmp 0x434437
push 0
push 4
call sub.msvcrt.dll_signal
add esp, 8
test eax, eax
je case.0x43439c.1073741678
cmp eax, 1
jne 0x434431
push 1
push 4
call sub.msvcrt.dll_signal
add esp, 8
jmp 0x43443c
mov eax, dword [0x43d058]
test eax, eax
je 0x43442d
pop ebx
jmp eax
xor eax, eax
jmp 0x43443f
push 4
jmp 0x434437
push 0xb
call eax
add esp, 4
xor eax, eax
dec eax
pop ebx
ret 4