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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x4a0
test byte [ecx], 1
lea ebx, [ecx + 1]
mov edi, edx
mov esi, ecx
mov eax, ebx
je 0x408aa0
mov eax, dword [esi + 8]
push 4
push eax
call sub.msvcrt.dll__access
add esp, 8
test eax, eax
jne 0x4093a0
lea eax, [esp + 0x5c]
push esi
push eax
call fcn.00432d20
add esp, 8
cmp dword [esp + 0x5c], 0
je 0x4093b3
lea ecx, [esp + 0x50]
push edi
call fcn.004e9000
movzx eax, byte [esp + 0x50]
test al, 1
je 0x408ae9
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x408b4f
jmp 0x408aef
shr eax, 1
test eax, eax
jne 0x408b4f
lea ecx, [esp + 0x98]
call fcn.00409aa0
test byte [esp + 0x50], 1
jne 0x408b0b
mov word [esp + 0x50], 0
jmp 0x408b35
mov eax, dword [esp + 0x58]
mov byte [eax], 0
mov dword [esp + 0x54], 0
test byte [esp + 0x50], 1
je 0x408b35
push dword [esp + 0x58]
call fcn.0040bd10
add esp, 4
mov dword [esp + 0x50], 0
mov eax, dword [esp + 0xa0]
movsd xmm0, qword [esp + 0x98]
mov dword [esp + 0x58], eax
movsd qword [esp + 0x50], xmm0
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x8c], 0
mov dword [esp + 0x88], 0
mov dword [esp + 0x90], 0
push esi
call fcn.00434fd0
add esp, 4
mov edi, dword [esi + 0x30]
mov dword [esp + 0x4c], esi
lea ecx, [esp + 0x68]
push eax
push ecx
call fcn.00437980
add esp, 8
movzx eax, byte [esp + 0x68]
test al, 1
je 0x408ba6
mov eax, dword [esp + 0x6c]
cmp eax, 5
je 0x408bad
jmp 0x408bc5
shr eax, 1
cmp eax, 5
jne 0x408bc5
lea ecx, [esp + 0x68]
push 5
push str.super
push 0xffffffffffffffff
push 0
call fcn.004cec10
test eax, eax
je 0x408c43
mov esi, dword [0x53c4d4]
push 0x20
call fcn.0040bb60
add esp, 4
movsd xmm0, qword [0x5111b0]
mov dword [esp + 0xa0], eax
mov dword [eax + 0x10], 0x65707573
mov dword [eax + 0xc], 0x2d687361
mov dword [eax + 8], 0x6c662d77
mov dword [eax + 4], 0x6f6c6c61
mov dword [eax], 0x206d656f
mov word [eax + 0x14], 0x72
lea eax, [esp + 0x98]
mov ecx, esi
movsd qword [esp + 0x98], xmm0
push 0
push 0
push 0
push eax
call fcn.00429d80
test byte [esp + 0x98], 1
je 0x408c43
push dword [esp + 0xa0]
call fcn.0040bd10
add esp, 4
lea esi, [esp + 0x98]
mov ecx, esi
call fcn.00412390
mov ecx, dword [esp + 0x4c]
mov eax, dword [ecx + 0xdc]
sub eax, dword [ecx + 0xd8]
sar eax, 6
cmp eax, 2
jb 0x408cb7
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], 0
push esi
call sub.msvcrt.dll_strlen
add esp, 4
cmp eax, 0xfffffff0
jae 0x409397
mov ebx, eax
cmp eax, 0xb
jae 0x408dfd
mov eax, ebx
lea esi, [esp + 0x31]
add al, bl
test ebx, ebx
mov byte [esp + 0x30], al
jne 0x408e29
jmp 0x408e3b
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov word [esp + 0x20], 0x2f02
mov byte [esp + 0x22], 0
lea ecx, [esp + 0x20]
push esi
push 0
call fcn.004e8320
mov ecx, dword [eax + 8]
mov dword [esp + 8], ecx
movsd xmm0, qword [eax]
movsd qword [esp], xmm0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
movzx eax, byte [esp + 0x68]
test al, 1
je 0x408d1e
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x6c]
jmp 0x408d24
shr eax, 1
lea edx, [esp + 0x69]
mov ecx, esp
push eax
push edx
call fcn.004e7c80
mov ecx, dword [eax + 8]
lea esi, [esp + 0x10]
mov dword [esp + 0x18], ecx
mov ecx, esi
movsd xmm0, qword [eax]
movsd qword [esp + 0x10], xmm0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
push 0x51332f
call fcn.004e7c60
mov ecx, dword [eax + 8]
mov dword [esp + 0x38], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x30], xmm0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
test byte [esp + 0x10], 1
jne 0x408dd6
test byte [esp], 1
jne 0x408de8
test byte [esp + 0x20], 1
je 0x408da7
push dword [esp + 0x28]
call fcn.0040bd10
add esp, 4
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], eax
lea eax, [esp + 0x30]
push 1
push esi
push edi
push dword [esp + 0x58]
push eax
call fcn.00434d00
jmp 0x408e6d
push dword [esp + 0x18]
call fcn.0040bd10
add esp, 4
test byte [esp], 1
je 0x408d94
push dword [esp + 8]
call fcn.0040bd10
add esp, 4
test byte [esp + 0x20], 1
jne 0x408d9b
jmp 0x408da7
mov dword [esp + 0x64], edi
mov edi, ebx
add ebx, 0x10
and ebx, 0xfffffff0
push ebx
call fcn.0040bb60
add esp, 4
or ebx, 1
mov dword [esp + 0x38], eax
mov esi, eax
mov dword [esp + 0x30], ebx
mov ebx, edi
mov edi, dword [esp + 0x64]
mov dword [esp + 0x34], ebx
push ebx
lea eax, [esp + 0x9c]
push eax
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
lea eax, [esp + 0x14]
mov byte [esi + ebx], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
lea esi, [esp + 0x10]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x30]
push 1
push esi
push edi
push dword [esp + 0x58]
push eax
call fcn.00434d70
add esp, 0x14
mov ebx, eax
mov ecx, esi
push dword [esp + 0x14]
call fcn.00502120
test byte [esp + 0x30], 1
je 0x408e90
push dword [esp + 0x38]
call fcn.0040bd10
add esp, 4
test bl, bl
je 0x40929b
mov eax, dword [esp + 0x4c]
mov esi, dword [eax + 0xd8]
mov eax, dword [eax + 0xdc]
cmp esi, eax
mov dword [esp + 0x94], eax
je 0x4092b6
mov al, 1
lea ebx, [esp + 0x10]
mov dword [esp + 0x60], eax
jmp 0x408f10
push dword [esp + 0x28]
call fcn.0040bd10
add esp, 4
test byte [esp], 1
je 0x409276
push dword [esp + 8]
call fcn.0040bd10
add esp, 4
test byte [esp + 0x10], 1
jne 0x40927d
jmp 0x409289
push esi
push ebx
call fcn.00437980
add esp, 8
mov ecx, dword [esp + 0x4c]
mov eax, dword [esi + 0x3c]
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], 0
mov edx, dword [ecx + 0xdc]
mov dword [esp + 0x64], eax
sub edx, dword [ecx + 0xd8]
sar edx, 6
cmp edx, 2
jb 0x408fb0
mov edi, esi
push ebx
push 0x513364
lea esi, [esp + 0x38]
push esi
call fcn.0050f9e0
add esp, 0xc
mov ecx, esi
push 0x51332f
call fcn.004e7c60
mov ecx, dword [eax + 4]
movzx ebx, byte [eax]
mov dword [esp + 0x23], ecx
mov ecx, dword [eax + 1]
mov dword [esp + 0x20], ecx
mov esi, dword [eax + 8]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0
test byte [esp], 1
jne 0x408fe0
mov word [esp], 0
jmp 0x409008
movzx ebx, byte [esp + 0x10]
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x38], 0
test bl, 1
je 0x409050
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
jmp 0x409058
mov eax, dword [esp + 8]
mov byte [eax], 0
mov dword [esp + 4], 0
test byte [esp], 1
je 0x409008
push dword [esp + 8]
call fcn.0040bd10
add esp, 4
mov dword [esp], 0
test byte [esp + 0x30], 1
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x23]
lea edx, [esp + 1]
mov byte [esp], bl
mov dword [esp + 0x23], 0
mov dword [esp + 0x20], 0
mov dword [edx + 3], ecx
mov dword [edx], eax
mov dword [esp + 8], esi
je 0x409043
push dword [esp + 0x38]
call fcn.0040bd10
add esp, 4
mov esi, edi
jmp 0x40911f
lea eax, [esp + 0x11]
shr ebx, 1
mov ecx, eax
lea eax, [ebx + 4]
cmp eax, 0xfffffff0
jae 0x409397
cmp eax, 0xb
mov dword [esp + 0x74], esi
jae 0x409080
mov eax, ebx
lea esi, [esp + 0x31]
add al, bl
test ebx, ebx
mov byte [esp + 0x30], al
jne 0x4090a4
jmp 0x4090af
lea edi, [ebx + 0x14]
and edi, 0xfffffff0
push edi
mov esi, ecx
call fcn.0040bb60
mov ecx, esi
add esp, 4
or edi, 1
mov dword [esp + 0x38], eax
mov esi, eax
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], ebx
push ebx
push ecx
push esi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov byte [esi + ebx], 0
lea ecx, [esp + 0x30]
push 4
push 0x51332f
call fcn.004e7c80
test byte [esp], 1
jne 0x4090e0
mov esi, dword [esp + 0x74]
mov word [esp], 0
jmp 0x40910c
mov eax, dword [esp + 8]
mov esi, dword [esp + 0x74]
mov byte [eax], 0
mov dword [esp + 4], 0
test byte [esp], 1
je 0x40910c
push dword [esp + 8]
call fcn.0040bd10
add esp, 4
mov dword [esp], 0
mov eax, dword [esp + 0x38]
movsd xmm0, qword [esp + 0x30]
mov dword [esp + 8], eax
movsd qword [esp], xmm0
lea edi, [esp + 0x98]
mov dword [esp + 0x78], 0
mov dword [esp + 0x7c], 0
mov dword [esp + 0x80], 0
mov word [esp + 0x78], 0x2f02
mov byte [esp + 0x7a], 0
lea ecx, [esp + 0x78]
push edi
push 0
call fcn.004e8320
mov ecx, dword [eax + 8]
mov dword [esp + 0x38], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x30], xmm0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
movzx eax, byte [esp]
test al, 1
je 0x409190
mov edx, dword [esp + 8]
mov eax, dword [esp + 4]
jmp 0x409196
shr eax, 1
lea edx, [esp + 1]
lea ecx, [esp + 0x30]
push eax
push edx
call fcn.004e7c80
mov ecx, dword [eax + 8]
mov dword [esp + 0x28], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x20], xmm0
mov dword [eax + 8], 0
mov dword [eax + 4], 0
mov dword [eax], 0
test byte [esp + 0x30], 1
je 0x4091d9
push dword [esp + 0x38]
call fcn.0040bd10
add esp, 4
test byte [esp + 0x78], 1
je 0x4091ef
push dword [esp + 0x80]
call fcn.0040bd10
add esp, 4
mov ebx, dword [esp + 0x64]
lea eax, [esp + 0x20]
lea edi, [esp + 0x30]
lea ecx, [esp + 0x10]
mov dword [esp + 0x30], 0x513374
lea edx, [esp + 0x50]
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], edi
and ebx, 1
push ebx
push edi
call fcn.00403be0
add esp, 8
mov ecx, dword [esp + 0x40]
cmp edi, ecx
je 0x409240
test ecx, ecx
je 0x409245
mov eax, dword [ecx]
call dword [eax + 0x14]
jmp 0x409245
mov eax, dword [ecx]
call dword [eax + 0x10]
test byte [esp + 0x20], 1
lea eax, [esp + 0x21]
lea ebx, [esp + 0x10]
je 0x409258
mov eax, dword [esp + 0x28]
push eax
call fcn.00437a60
add esp, 4
test byte [esp + 0x20], 1
jne 0x408ed0
test byte [esp], 1
jne 0x408ee6
test byte [esp + 0x10], 1
je 0x409289
push dword [esp + 0x18]
call fcn.0040bd10
add esp, 4
add esi, 0x40
cmp esi, dword [esp + 0x94]
jne 0x408f10
jmp 0x4092bc
lea ecx, [esp + 0x88]
push str.Could_not_generate_a_flashable_super_image_file
call fcn.004e7f50
mov dword [esp + 0x60], 0
jmp 0x4092bc
mov al, 1
mov dword [esp + 0x60], eax
lea ecx, [esp + 0x98]
call fcn.00412470
test byte [esp + 0x68], 1
je 0x4092db
push dword [esp + 0x70]
call fcn.0040bd10
add esp, 4
cmp byte [esp + 0x60], 0
je 0x4093c6
test byte [esp + 0x88], 1
je 0x4092ff
push dword [esp + 0x90]
call fcn.0040bd10
add esp, 4
test byte [esp + 0x50], 1
je 0x409312
push dword [esp + 0x58]
call fcn.0040bd10
add esp, 4
mov esi, dword [esp + 0x5c]
mov dword [esp + 0x5c], 0
test esi, esi
je 0x40938f
mov eax, dword [esi + 0xd8]
test eax, eax
je 0x40933b
mov dword [esi + 0xdc], eax
push eax
call fcn.0040bd10
add esp, 4
mov eax, dword [esi + 0xcc]
test eax, eax
je 0x409354
mov dword [esi + 0xd0], eax
push eax
call fcn.0040bd10
add esp, 4
mov eax, dword [esi + 0xc0]
test eax, eax
je 0x40936d
mov dword [esi + 0xc4], eax
push eax
call fcn.0040bd10
add esp, 4
mov eax, dword [esi + 0xb4]
test eax, eax
je 0x409386
mov dword [esi + 0xb8], eax
push eax
call fcn.0040bd10
add esp, 4
push esi
call fcn.0040bd10
add esp, 4
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea ecx, [esp + 0x30]
call fcn.004d1480
test byte [esi], 1
je 0x4093a8
mov ebx, dword [esi + 8]
push ebx
push str.Could_not_read_image:__s
call fcn.00412d70
test byte [esi], 1
je 0x4093bb
mov ebx, dword [esi + 8]
push ebx
push str.Could_not_parse_image:__s
call fcn.00412d70
lea eax, [esp + 0x88]
push eax
call fcn.00412dd0
nop word cs:[eax + eax]
nop dword [eax]