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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x80
mov ebx, dword [esp + 0x94]
movapd xmm0, xmmword [0x4f23d0]
movupd xmmword [esp + 0x68], xmm0
lea eax, [esp + 0x68]
push eax
push ebx
call dbg.ffDetectBattery
add esp, 8
test eax, eax
je 0x425da1
add ebx, 0x20
push eax
push 0x4f2408
push 0
push ebx
push 0
push str.Battery
call dbg.ffPrintError
add esp, 0x18
jmp 0x426417
mov eax, dword [esp + 0x70]
test al, al
je 0x4263f9
lea esi, [ebx + 0x20]
xor edx, edx
lea edi, [esp + 4]
mov dword [esp + 0x58], esi
jmp 0x425ddc
mov eax, dword [0x5052b0]
mov dword [ebp + 0x14], eax
mov edx, dword [esp + 0x7c]
inc edx
mov eax, dword [esp + 0x70]
movzx ecx, al
cmp ecx, edx
jbe 0x4263f9
mov ebp, dword [esp + 0x6c]
imul ebp, edx
add ebp, dword [esp + 0x68]
cmp dword [ebx + 0x3c], 0
mov dword [esp + 0x7c], edx
je 0x425f80
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
mov eax, dword [0x5052b0]
mov dword [esp + 0x54], eax
movsd xmm0, qword [ebp + 0x48]
movzx eax, word [ebx + 0x4b]
mov word [esp + 4], ax
sub esp, 0x14
mov word [esp + 0xc], ax
movsd qword [esp + 4], xmm0
lea edi, [esp + 0x60]
mov dword [esp], edi
mov dword [esp + 0x10], 0
mov esi, ebx
mov ebx, edx
call dbg.ffPercentAppendNum
add esp, 0x14
mov dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
mov eax, dword [0x5052b0]
mov dword [esp + 0x64], eax
movsd xmm0, qword [ebp + 0x50]
movzx eax, word [esi + 0x49]
mov word [esp + 4], ax
sub esp, 0x10
mov word [esp + 0xc], ax
lea esi, [esp + 0x6c]
mov dword [esp + 8], esi
movsd qword [esp], xmm0
call dbg.ffTempsAppendNum
add esp, 0x10
mov dword [esp + 4], 7
mov dword [esp + 8], ebp
mov dword [esp + 0xc], 7
lea eax, [ebp + 0x18]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], 7
lea eax, [ebp + 0x24]
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 7
mov dword [esp + 0x20], edi
lea edi, [esp + 4]
mov dword [esp + 0x24], 7
lea eax, [ebp + 0x30]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 7
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x58]
mov dword [esp + 0x34], 1
lea eax, [ebp + 0x58]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 7
lea eax, [ebp + 0x3c]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], 7
lea eax, [ebp + 0xc]
mov dword [esp + 0x48], eax
movzx eax, bl
push edi
push 9
push 0
push esi
push eax
push str.Battery
call dbg.ffPrintFormat
add esp, 0x18
cmp dword [esp + 0x5c], 0
mov dword [esp + 0x60], 0
je 0x425f49
mov dword [esp + 0x5c], 0
push dword [esp + 0x64]
call sym._free
add esp, 4
cmp dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
je 0x425f6c
mov dword [esp + 0x4c], 0
push dword [esp + 0x54]
call sym._free
add esp, 4
mov ebx, dword [esp + 0x94]
jmp 0x42630e
movzx eax, dl
push 0
push esi
push eax
push str.Battery
call dbg.ffPrintLogoAndKey
add esp, 0x10
mov dword [esp + 4], 0
mov dword [esp + 8], 0
mov eax, dword [0x5052b0]
mov dword [esp + 0xc], eax
test byte [0x5063e6], 4
jne 0x425fe0
cmp dword [ebp + 0x34], 0
je 0x425fe0
push 0x4f25d4
push dword [ebp + 0x38]
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
add esp, 8
test eax, eax
setne cl
jmp 0x425fe2
xor ecx, ecx
movsd xmm0, qword [ebp + 0x48]
ucomisd xmm0, qword [0x4f23e0]
jb 0x426111
movzx eax, byte [0x5063e6]
test al, 2
je 0x42602d
movzx eax, word [ebx + 0x4b]
mov word [esp + 0x4c], ax
sub esp, 0x10
mov word [esp + 0xc], ax
movsd qword [esp + 4], xmm0
mov dword [esp], edi
mov esi, ecx
call dbg.ffPercentAppendBar
mov ecx, esi
add esp, 0x10
movzx eax, byte [0x5063e6]
test al, 1
je 0x426111
mov esi, dword [esp + 8]
test esi, esi
mov dword [esp], ecx
je 0x426082
mov eax, dword [esp + 4]
test eax, eax
je 0x42604f
lea ebx, [esi + 1]
cmp eax, ebx
jne 0x426086
cmp eax, 2
mov ecx, eax
mov edx, 0x20
cmovb ecx, edx
lea edx, [esi + 2]
nop
mov edi, ecx
add ecx, ecx
cmp edx, edi
ja 0x426060
test eax, eax
je 0x42608c
push edi
push dword [esp + 0x10]
call sym._realloc
add esp, 8
mov esi, dword [esp + 8]
lea ebx, [esi + 1]
jmp 0x4260b1
xor eax, eax
jmp 0x4260e0
mov eax, dword [esp + 0xc]
jmp 0x4260bd
push edi
call sym._malloc
add esp, 4
mov dword [esp + 0x78], eax
lea ebx, [esi + 1]
push ebx
push dword [esp + 0x10]
push eax
call sym._memcpy
mov eax, dword [esp + 0x84]
add esp, 0xc
mov dword [esp + 0xc], eax
mov dword [esp + 4], edi
lea edi, [esp + 4]
mov dword [esp + 8], ebx
mov byte [eax + esi], 0x20
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
mov byte [ecx + eax], 0
cmp dword [esp + 8], 0
setne al
mov ebx, dword [esp + 0x94]
movsd xmm0, qword [ebp + 0x48]
movzx ecx, word [ebx + 0x4b]
mov word [esp + 0x4c], cx
sub esp, 0x14
mov word [esp + 0xc], cx
movzx eax, al
mov dword [esp + 0x10], eax
movsd qword [esp + 4], xmm0
mov dword [esp], edi
call dbg.ffPercentAppendNum
add esp, 0x14
mov ecx, dword [esp]
test cl, cl
je 0x4261e0
cmp dword [esp + 8], 0
je 0x426136
push dword [ebp + 0x38]
push 0x4f25dc
push edi
call dbg.ffStrbufAppendF
add esp, 0xc
jmp 0x4261e0
mov esi, dword [ebp + 0x34]
test esi, esi
je 0x4261e0
mov edx, dword [ebp + 0x38]
test edx, edx
je 0x4261e0
mov eax, dword [esp + 4]
mov ecx, eax
sub ecx, 1
jb 0x426163
cmp ecx, esi
jb 0x426163
xor ecx, ecx
mov eax, dword [esp + 0xc]
jmp 0x4261bc
mov dword [esp], edx
cmp eax, 2
mov ecx, eax
mov edx, 0x20
cmovb ecx, edx
lea edx, [esi + 1]
nop word cs:[eax + eax]
mov edi, ecx
add ecx, ecx
cmp edx, edi
ja 0x426180
test eax, eax
je 0x42619f
push edi
push dword [esp + 0x10]
call sym._realloc
add esp, 8
mov ecx, dword [esp + 8]
jmp 0x4261ad
push edi
call sym._malloc
add esp, 4
mov byte [eax], 0
xor ecx, ecx
mov edx, dword [esp]
mov dword [esp + 0xc], eax
mov dword [esp + 4], edi
lea edi, [esp + 4]
add ecx, eax
push esi
push edx
push ecx
call sym._memcpy
add esp, 0xc
add esi, dword [esp + 8]
mov dword [esp + 8], esi
mov eax, dword [esp + 0xc]
mov byte [eax + esi], 0
nop dword [eax]
movsd xmm0, qword [ebp + 0x50]
ucomisd xmm0, xmm0
jp 0x4262bc
mov edi, dword [esp + 8]
test edi, edi
je 0x426296
mov eax, dword [esp + 4]
test eax, eax
je 0x42620e
mov ecx, edi
not ecx
add ecx, eax
cmp ecx, 3
jae 0x426241
cmp eax, 2
mov ecx, eax
mov edx, 0x20
cmovb ecx, edx
lea edx, [edi + 4]
nop
mov ebx, ecx
add ecx, ecx
cmp edx, ebx
ja 0x426220
test eax, eax
je 0x426247
push ebx
push dword [esp + 0x10]
call sym._realloc
add esp, 8
mov esi, eax
mov edi, dword [esp + 8]
jmp 0x426263
mov esi, dword [esp + 0xc]
jmp 0x426272
push ebx
call sym._malloc
add esp, 4
mov esi, eax
lea eax, [edi + 1]
push eax
push dword [esp + 0x10]
push esi
call sym._memcpy
add esp, 0xc
mov dword [esp + 0xc], esi
mov dword [esp + 4], ebx
mov ebx, dword [esp + 0x94]
mov byte [esi + edi + 2], 0x20
mov word [esi + edi], 0x2d20
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
lea edx, [eax + 3]
mov dword [esp + 8], edx
mov byte [ecx + eax + 3], 0
movsd xmm0, qword [ebp + 0x50]
movzx eax, word [ebx + 0x49]
mov word [esp + 0x4c], ax
sub esp, 0x10
mov word [esp + 0xc], ax
lea edi, [esp + 0x14]
mov dword [esp + 8], edi
movsd qword [esp], xmm0
call dbg.ffTempsAppendNum
add esp, 0x10
push 1
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
add esp, 4
mov esi, eax
push eax
push dword [esp + 0xc]
push 1
push dword [esp + 0x18]
call sym._fwrite
add esp, 0x10
push esi
push 0xa
call sym._fputc
add esp, 8
cmp dword [esp + 4], 0
mov dword [esp + 8], 0
mov esi, dword [esp + 0x58]
je 0x42630e
mov dword [esp + 4], 0
push dword [esp + 0xc]
call sym._free
add esp, 4
cmp dword [ebp], 0
mov dword [ebp + 4], 0
je 0x42632d
mov dword [ebp], 0
push dword [ebp + 8]
call sym._free
add esp, 4
mov eax, dword [0x5052b0]
mov dword [ebp + 8], eax
cmp dword [ebp + 0x18], 0
mov dword [ebp + 0x1c], 0
je 0x426354
mov dword [ebp + 0x18], 0
push dword [ebp + 0x20]
call sym._free
add esp, 4
mov eax, dword [0x5052b0]
mov dword [ebp + 0x20], eax
cmp dword [ebp + 0x24], 0
mov dword [ebp + 0x28], 0
je 0x42637b
mov dword [ebp + 0x24], 0
push dword [ebp + 0x2c]
call sym._free
add esp, 4
mov eax, dword [0x5052b0]
mov dword [ebp + 0x2c], eax
cmp dword [ebp + 0x30], 0
mov dword [ebp + 0x34], 0
je 0x4263a2
mov dword [ebp + 0x30], 0
push dword [ebp + 0x38]
call sym._free
add esp, 4
mov eax, dword [0x5052b0]
mov dword [ebp + 0x38], eax
cmp dword [ebp + 0x3c], 0
mov dword [ebp + 0x40], 0
je 0x4263c9
mov dword [ebp + 0x3c], 0
push dword [ebp + 0x44]
call sym._free
add esp, 4
mov eax, dword [0x5052b0]
mov dword [ebp + 0x44], eax
cmp dword [ebp + 0xc], 0
mov dword [ebp + 0x10], 0
je 0x425dc0
mov dword [ebp + 0xc], 0
push dword [ebp + 0x14]
call sym._free
add esp, 4
jmp 0x425dc0
test eax, eax
jne 0x426417
add ebx, 0x20
push str.No_batteries_found
push 0
push ebx
push 0
push str.Battery
call dbg.ffPrintError
add esp, 0x14
mov eax, dword [esp + 0x68]
test eax, eax
je 0x426438
mov dword [esp + 0x70], 0
mov dword [esp + 0x74], 0
push eax
call sym._free
add esp, 4
add esp, 0x80
pop esi
pop edi
pop ebx
pop ebp
ret