Function at 0x404a50
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xf8
mov eax, dword [esp + 0xfc]
push ebx
push ebp
push esi
push edi
xor ebp, ebp
push eax
mov dword [esp + 0x40], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
call dword [0x4141f0]
mov edi, eax
push edi
mov dword [esp + 0x48], edi
call dword [0x41401c]
mov ecx, dword [0x41d3bc]
mov edx, dword [0x41d3b8]
push ecx
push edx
push edi
mov esi, eax
call dword [0x414034]
mov ebx, dword [0x414050]
push eax
push esi
mov dword [esp + 0x50], eax
call ebx
push 0xf
call dword [0x414250]
push eax
push 0x41d3b0
push esi
call dword [0x414214]
mov eax, dword [0x41d3bc]
mov edx, dword [0x41d3b4]
mov ecx, dword [0x41d3b8]
push 0x1e
dec eax
push 0x1e
push eax
mov eax, dword [0x41d3b0]
inc edx
push ecx
inc eax
push edx
push eax
call dword [0x414070]
push eax
push esi
mov dword [esp + 0x48], eax
call dword [0x41406c]
mov ecx, dword [0x41e51c]
push ecx
push esi
call ebx
mov edx, dword [0x41d3b4]
mov edi, dword [0x41d3b0]
mov ecx, dword [0x41d3bc]
mov dword [esp + 0x50], edx
mov edx, 0xff00
mov dword [esp + 0x1c], eax
mov eax, dword [0x41d3b8]
mov word [esp + 0x54], dx
mov word [esp + 0x64], dx
mov word [esp + 0x66], dx
mov edx, dword [0x41d47c]
mov dword [esp + 0x4c], edi
cmp edx, ebp
mov word [esp + 0x56], 0xfe00
mov word [esp + 0x58], 0xd900
mov word [esp + 0x5a], bp
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], ecx
mov word [esp + 0x68], 0x9a00
mov word [esp + 0x6a], bp
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], 1
je 0x404b87
push 1
lea eax, [esp + 0x70]
push 1
push eax
lea ecx, [esp + 0x58]
push 2
push ecx
push esi
call edx
jmp 0x404ba4
mov edx, dword [0x41d3b4]
sub eax, edi
sub ecx, edx
push 0x1e
dec ecx
push 0x1e
dec eax
push ecx
push eax
push 1
push 1
push esi
call dword [0x414024]
mov edx, dword [esp + 0x1c]
push edx
push esi
call ebx
cmp dword [0x41e524], ebp
je 0x404c50
cmp dword [0x41c0c8], 0x258
jbe 0x404c50
mov eax, dword [0x41d3bc]
mov edx, dword [0x41d3b4]
mov dword [esp + 0x2c], eax
sub eax, edx
cdq
mov ecx, dword [0x41d3b0]
sub eax, edx
sar eax, 1
sub eax, 0x14
add ecx, 0xf
mov dword [esp + 0x24], eax
mov eax, dword [0x41d3b8]
add eax, 0xfffffff1
push 0xaac8c8
push esi
mov dword [esp + 0x30], eax
mov dword [esp + 0x28], ecx
call dword [0x41404c]
push 1
push esi
call dword [0x414048]
mov edx, dword [0x41bf00]
push edx
push esi
call ebx
mov dword [esp + 0x10], eax
push ebp
lea eax, [esp + 0x24]
push 0x8015
push eax
mov edi, str.Evaluation_version._Please_purchase_BatteryMon
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push str.Evaluation_version._Please_purchase_BatteryMon
push esi
call dword [0x4141e4]
mov ecx, dword [esp + 0x10]
push ecx
push esi
call ebx
push ebp
push esi
call dword [0x41404c]
push 1
push esi
call dword [0x414048]
mov eax, dword [0x41e514]
mov dword [esp + 0x18], 0x64
cmp eax, 0xffffffff
mov eax, dword [0x41c098]
jne 0x404c81
cmp eax, 0x64
jge 0x404c81
mov dword [esp + 0x18], eax
sub eax, dword [esp + 0x18]
mov dword [esp + 0x14], eax
jns 0x404c94
add eax, 0x3e8
mov dword [esp + 0x14], eax
mov edx, dword [0x41af38]
push edx
push esi
call ebx
mov dword [esp + 0x1c], eax
mov eax, dword [0x41bef4]
push eax
push esi
call ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0x20], 0xa
mov ebp, 0x5a
fild dword [esp + 0x20]
fmul dword [0x41d480]
call fcn.0040a758
mov ebx, eax
push 0
push ebx
push 1
push esi
call dword [0x414058]
mov ecx, dword [0x41d3b8]
push ebx
dec ecx
push ecx
push esi
call dword [0x41405c]
push ebp
lea edx, [esp + 0x78]
push 0x4169f4
push edx
call fcn.00409efc
lea edi, [esp + 0x80]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x74]
push ecx
inc ebx
push eax
push ebx
push 5
push esi
call dword [0x414044]
mov edx, dword [esp + 0x20]
sub ebp, 0xa
add edx, 0xa
cmp ebp, 0xa
mov dword [esp + 0x20], edx
jge 0x404cbc
mov ecx, dword [0x41d3c4]
mov edi, dword [0x414050]
push ecx
push esi
call edi
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x14]
mov ecx, 1
cmp eax, ecx
mov dword [esp + 0x20], ecx
jle 0x404e3a
lea eax, [ebp + 1]
shl eax, 4
mov dword [esp + 0x14], eax
lea edi, [ecx + ebp]
mov ebx, 0xa
mov eax, edi
cdq
idiv ebx
test edx, edx
jne 0x404e18
fild dword [esp + 0x20]
fmul dword [0x41d484]
call fcn.0040a758
mov ebx, eax
push 0
push 1
push ebx
push esi
call dword [0x414058]
mov edx, dword [0x41d3bc]
dec edx
push edx
push ebx
push esi
call dword [0x41405c]
mov eax, dword [esp + 0x14]
cmp edi, 0x3e8
jl 0x404db7
add eax, 0xffffc180
xor ecx, ecx
xor edx, edx
mov cx, word [eax + 0x41e54c]
mov dx, word [eax + 0x41e54a]
push ecx
xor ecx, ecx
mov cx, word [eax + 0x41e548]
push edx
push ecx
lea edx, [esp + 0x80]
push str._02d:_02d:_02d
push edx
call fcn.00409efc
lea edi, [esp + 0x88]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x14
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x74]
push ecx
mov ecx, dword [0x41d3bc]
add ecx, 0xfffffffb
push eax
inc ebx
push ecx
push ebx
push esi
call dword [0x414044]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
inc ecx
add edx, 0x10
cmp ecx, eax
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], edx
jl 0x404d64
mov edi, dword [0x414050]
mov edx, dword [esp + 0x1c]
push edx
push esi
call edi
mov eax, dword [esp + 0x10]
push eax
push esi
call edi
mov ecx, dword [0x41bef0]
push ecx
push esi
call edi
mov ebx, dword [ebp*4 + 0x41d578]
mov edx, 0x64
sub edx, ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], edx
fild dword [esp + 0x10]
fmul dword [0x41d480]
fadd dword [0x41435c]
call fcn.0040a758
mov ebx, eax
push 0
push ebx
push 1
push esi
call dword [0x414058]
fld dword [0x4223c4]
fmul dword [0x414324]
fmul dword [0x41d3a8]
fmul dword [0x41d480]
fadd dword [0x41435c]
call fcn.0040a758
add eax, ebx
push eax
mov eax, dword [0x41d3b8]
dec eax
push eax
push esi
call dword [0x41405c]
mov ecx, dword [0x41d3c8]
fld dword [ecx*4 + 0x4163c0]
fcomp qword [0x414360]
fnstsw ax
and eax, 0x4100
jne 0x404f58
mov edx, dword [0x41c080]
push edx
push esi
call edi
mov ebx, dword [ebp*4 + 0x41d578]
mov eax, 0x64
sub eax, ebx
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul dword [0x41d480]
fadd dword [0x41435c]
call fcn.0040a758
mov ebx, eax
push 0
push ebx
push 1
push esi
call dword [0x414058]
fld dword [0x4223c4]
fmul dword [0x414324]
mov ecx, dword [0x41d3c8]
fmul dword [ecx*4 + 0x4163c0]
fmul dword [0x41d480]
fadd dword [0x41435c]
call fcn.0040a758
mov edx, dword [0x41d3b8]
add eax, ebx
dec edx
push eax
push edx
push esi
call dword [0x41405c]
mov eax, dword [esp + 0x1c]
push eax
push esi
call edi
mov ecx, dword [0x41e528]
push ecx
push esi
call edi
mov dword [esp + 0x1c], eax
mov eax, dword [ebp*4 + 0x41d578]
mov edx, 0x64
push 0
sub edx, eax
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fmul dword [0x41d480]
fadd dword [0x41435c]
call fcn.0040a758
push eax
push 0
push esi
call dword [0x414058]
mov eax, dword [esp + 0x18]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x20], ebx
jle 0x405016
cmp ebp, 0x3e8
jl 0x404fc3
mov dword [esp + 0x14], 0
mov ebp, dword [esp + 0x14]
mov ecx, dword [ebp*4 + 0x41d578]
mov eax, 0x64
sub eax, ecx
mov dword [esp + 0x10], eax
fild dword [esp + 0x10]
fmul dword [0x41d480]
fadd dword [0x41435c]
call fcn.0040a758
fild dword [esp + 0x20]
push eax
fmul dword [0x41d484]
fadd dword [0x41435c]
call fcn.0040a758
push eax
push esi
call dword [0x41405c]
mov eax, dword [esp + 0x18]
inc ebp
inc ebx
cmp ebx, eax
mov dword [esp + 0x20], ebx
jl 0x404faf
mov eax, dword [0x423ee0]
test eax, eax
je 0x40535b
mov edx, dword [esp + 0x10c]
lea ecx, [esp + 0xf8]
push ecx
push edx
mov dword [esp + 0x20], 1
call dword [0x41422c]
mov ebx, dword [esp + 0x100]
mov eax, dword [esp + 0xf8]
sub ebx, eax
mov eax, dword [0x423ee0]
mov dword [esp + 0x14], 4
lea ecx, [eax + 0x105c]
lea edx, [eax + 0x2160]
mov dword [esp + 0x10], ecx
add eax, 0x21dc
mov ecx, dword [eax - 0x1190]
test ecx, ecx
je 0x4050bd
mov ecx, dword [eax]
mov ebp, dword [esp + 0x38]
add ebp, ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x38], ebp
mov ebp, dword [esp + 0x3c]
mov ecx, dword [ecx + 0x10]
add ebp, ecx
mov ecx, dword [edx + 8]
cmp ecx, 0x80000000
mov dword [esp + 0x3c], ebp
je 0x4050a9
add dword [esp + 0x34], ecx
mov ecx, dword [esp + 0x10]
test dword [ecx], 0x40000000
je 0x4050bd
mov dword [esp + 0x18], 0
mov ecx, dword [eax - 0x90]
test ecx, ecx
je 0x4050d2
mov ecx, dword [edx]
cmp ecx, 0xffffffff
je 0x4050d2
add dword [esp + 0x30], ecx
mov ebp, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add eax, 4
add edx, 0x10
add ebp, 0x24
dec ecx
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ecx
jne 0x405073
mov edx, dword [0x41c094]
push edx
push esi
call edi
push 1
push esi
mov dword [esp + 0x18], eax
call dword [0x414048]
mov eax, dword [0x423edc]
test eax, eax
je 0x405140
mov ecx, dword [0x41bfd0]
mov edx, dword [0x41d478]
push ecx
mov ecx, dword [0x41d3b8]
push 0x5a
push 0xaf
push 0
push 0
push edx
push 0x5a
push 0xaf
add ecx, 0xffffff46
push 0xa
push ecx
push esi
call eax
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x30]
push edx
push eax
lea ecx, [esp + 0x9c]
push 0x4169e0
push ecx
call fcn.00409efc
mov eax, dword [esp + 0x28]
add esp, 0x10
test eax, eax
je 0x405186
lea edi, [esp + 0x94]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [str._mWh]
repne scasb al, byte es:[edi]
mov al, byte [0x4169dc]
dec edi
mov dword [edi], edx
mov byte [edi + 4], al
lea ecx, [esp + 0x20]
lea edi, [esp + 0x94]
push ecx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x98]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [0x414040]
lea edi, [esp + 0x94]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x94]
push ecx
push eax
mov eax, dword [esp + 0x28]
mov ecx, ebx
sub ecx, eax
push 0x14
sub ecx, 0x14
push ecx
push esi
call dword [0x414044]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x30]
sub eax, ecx
lea ebp, [edx + 0x14]
jns 0x405200
neg eax
push eax
lea eax, [esp + 0x98]
push 0x4169c4
push eax
jmp 0x40520e
push eax
lea ecx, [esp + 0x98]
push 0x4169b0
push ecx
call fcn.00409efc
mov eax, dword [esp + 0x24]
add esp, 0xc
test eax, eax
je 0x40523d
lea edi, [esp + 0x94]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [str._mWh]
repne scasb al, byte es:[edi]
mov al, byte [0x4169dc]
dec edi
mov dword [edi], edx
mov byte [edi + 4], al
lea ecx, [esp + 0x20]
lea edi, [esp + 0x94]
push ecx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x98]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [0x414040]
lea edi, [esp + 0x94]
or ecx, 0xffffffff
xor eax, eax
mov edx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x94]
push ecx
lea ecx, [ebp + 0xa]
push eax
push ecx
sub edx, dword [esp + 0x2c]
sub edx, 0x14
push edx
push esi
call dword [0x414044]
mov eax, dword [esp + 0x24]
lea ebp, [eax + ebp + 0xa]
mov eax, dword [esp + 0x34]
test eax, eax
jge 0x4052b7
cdq
xor eax, edx
lea ecx, [esp + 0x94]
sub eax, edx
push eax
push 0x41699c
push ecx
jmp 0x4052c5
push eax
lea edx, [esp + 0x98]
push 0x41698c
push edx
call fcn.00409efc
mov eax, dword [esp + 0x24]
add esp, 0xc
test eax, eax
je 0x4052eb
lea edi, [esp + 0x94]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [0x416988]
mov dword [edi - 1], eax
lea ecx, [esp + 0x20]
lea edi, [esp + 0x94]
push ecx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x98]
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
push esi
call dword [0x414040]
lea edi, [esp + 0x94]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x94]
sub ebx, edx
push ecx
add ebp, 0xa
push eax
sub ebx, 0x14
push ebp
push ebx
push esi
call dword [0x414044]
push 2
push esi
call dword [0x414048]
mov ecx, dword [esp + 0x10]
push ecx
push esi
call dword [0x414050]
mov edi, dword [0x414050]
mov edx, dword [esp + 0x1c]
push edx
push esi
call edi
mov eax, dword [0x41d3bc]
mov ecx, dword [0x41d3b8]
mov edi, dword [esp + 0x44]
push 0xcc0020
push 0
push 0
push esi
push eax
push ecx
push 0
push 0
push edi
call dword [0x414060]
mov edx, dword [esp + 0x10c]
push edi
push edx
call dword [0x414218]
push esi
call dword [0x414068]
mov eax, dword [esp + 0x48]
mov esi, dword [0x414074]
push eax
call esi
mov ecx, dword [esp + 0x40]
push ecx
call esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xf8
ret