Function at 0x43d7f0
Capabilities:
Resolve function by parsing pe exports
Write file on windows

Disassembly:
sub esp, 0x120
mov eax, dword [0x4cb598]
xor eax, esp
mov dword [esp + 0x11c], eax
push ebx
mov ebx, dword [esp + 0x128]
push ebp
push esi
push edi
xor ebp, ebp
push 0x103
lea eax, [esp + 0x2d]
push ebp
push eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x1c], ebp
mov byte [esp + 0x34], 0
call fcn.004762a0
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x24], ebp
mov dword [esp + 0x30], ebp
mov dword [esp + 0x20], ebp
mov dword [esp + 0x2c], ebp
call fcn.0043a500
push ebx
call fcn.00436340
mov edi, 1
add esp, 0x10
cmp dword [0x4c9afc], edi
mov esi, eax
jne 0x43d86c
push str.Image_rebuilding_is_on_Progress..._n
call fcn.0047825b
add esp, 4
add dword [0x4c9afc], edi
mov ecx, esi
call fcn.0043c800
mov edi, dword [ebx]
lea ecx, [esp + 0x10]
push str.FD_Section__n_FD.AMIROM___n
push ecx
call fcn.0043a730
mov edx, dword [esi + 0x30]
xor eax, eax
xor ecx, ecx
sub ecx, edx
mov edx, 1
sbb edx, eax
push edx
push ecx
lea eax, [esp + 0x20]
push str.BaseAddress__0x_x_n
push eax
call fcn.0043a730
mov ecx, dword [esi + 0x30]
push ecx
lea edx, [esp + 0x2c]
push str.Size__0x_x_n
push edx
call fcn.0043a730
xor eax, eax
cmp word [esi + 0x40], 0xffff
lea ecx, [esp + 0x34]
sete al
push eax
push str.ErasePolarity___x_n
push ecx
call fcn.0043a730
mov edx, dword [edi + 0x3c]
push edx
lea eax, [esp + 0x44]
push str.BlockSize__0x_x_n
push eax
call fcn.0043a730
mov eax, dword [esi + 0x30]
xor edx, edx
div dword [edi + 0x3c]
lea ecx, [esp + 0x4c]
push eax
push str.NumBlocks__0x_x_n_n
push ecx
call fcn.0043a730
add esp, 0x48
push esi
call fcn.00436210
add esp, 4
test eax, eax
je 0x43d932
cmp byte [eax + 9], 2
jne 0x43d92e
cmp eax, ebx
jne 0x43d924
cmp byte [eax + 8], 0
je 0x43d962
mov eax, dword [eax + 0x2c]
add ebp, 1
test eax, eax
jne 0x43d914
mov dword [esp + 0x14], ebp
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0x43a840
push 0x43c6b0
push ebx
call fcn.0043a650
add esp, 0x18
test eax, eax
je 0x43d9cb
mov eax, 0xd00f
jmp 0x43db16
mov ecx, dword [eax]
mov edx, dword [eax + 0x30]
sub edx, dword [esi + 0x38]
mov eax, dword [eax + 0x34]
sbb eax, dword [esi + 0x3c]
mov edi, dword [ecx + 0x20]
mov ebx, dword [ecx + 0x24]
mov ecx, dword [esi + 0x30]
mov dword [esp + 0x14], ebp
xor ebp, ebp
add edx, ecx
adc eax, ebp
add edx, 0xffffffff
adc eax, 0xffffffff
push eax
push edx
lea edx, [esp + 0x18]
push str.0x_x
push edx
call fcn.0043a730
push ebx
push edi
lea eax, [esp + 0x28]
push str.0x_x_n
push eax
call fcn.0043a730
mov ebp, dword [esp + 0x34]
push ebp
lea ecx, [esp + 0x34]
push str.FV__FV__d_n_n
push ecx
call fcn.0043a730
mov ebx, dword [esp + 0x48]
add esp, 0x2c
jmp 0x43d932
mov edx, dword [esp + 0x18]
push edx
lea ebx, [esp + 0x14]
call fcn.0043a570
add esp, 4
lea edi, [esp + 0x18]
call fcn.0043a600
mov ecx, dword [esi + 0x78]
lea edx, [esp + 0x28]
lea esp, [esp]
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x43d9f0
lea eax, [esp + 0x28]
add eax, 0xffffffff
mov cl, byte [eax + 1]
add eax, 1
test cl, cl
jne 0x43da05
mov ecx, dword [str.platform.fdf]
mov edx, dword [0x4b02b8]
push 0
push 0x80
mov dword [eax], ecx
mov ecx, dword [0x4b02bc]
push 2
mov dword [eax + 4], edx
mov dx, word [0x4b02c0]
push 0
mov dword [eax + 8], ecx
push 0
mov word [eax + 0xc], dx
push 0xc0000000
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x43d958
mov eax, 0xa
call fcn.0043add0
mov edx, dword [esp + 0x10]
mov eax, edx
lea edi, [eax + 1]
nop
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x43da70
push 0
lea ecx, [esp + 0x24]
push ecx
sub eax, edi
push eax
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x10]
push edx
call fcn.00478435
push ebp
push esi
call fcn.0044a9b0
add esp, 0xc
call fcn.0043d7a0
test eax, eax
jne 0x43dab7
cmp dword [0x4e2300], eax
je 0x43db14
push ebp
mov ecx, esi
call fcn.0043cea0
add esp, 4
cmp eax, 0xd00f
mov dword [0x4e2300], 0
je 0x43d958
cmp eax, 0xd00d
jne 0x43dafc
push esi
call fcn.0043a380
add esp, 4
call fcn.0043a4b0
neg eax
sbb eax, eax
and eax, 0xfffff001
add eax, 0xd00d
jmp 0x43db16
mov eax, dword [esp + 0x1c]
push eax
call fcn.0043d620
add esp, 4
test eax, eax
je 0x43db14
mov eax, 0xd00e
jmp 0x43db16
xor eax, eax
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00475cba
add esp, 0x120
ret