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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x41e9b6
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x34c], eax
push esi
push edi
mov eax, dword [section..data]
xor eax, esp
push eax
lea eax, [esp + 0x360]
mov dword fs:[0], eax
mov edi, dword [ebp + 0xc]
xorps xmm0, xmm0
push 0x10
or eax, 0xffffffff
mov dword [esp + 0x1c], edi
push 2
push str.Version__i._i_n
mov dword [esp + 0x54], eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x300], 0
movups xmmword [esp + 0x304], xmm0
mov dword [esp + 0x31c], 0
movq qword [esp + 0x314], xmm0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x60], 0
mov dword [esp + 0x3c], 0
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
movlpd qword [esp + 0x80], xmm0
movlpd qword [esp + 0x48], xmm0
mov dword [esp + 0x78], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
mov byte [esp + 0x64], 0
call fcn.0040b76b
mov eax, dword [ebp + 8]
add esp, 0xc
cmp eax, 2
jge 0x405096
call fcn.00403860
jmp 0x405f40
mov esi, 1
cmp eax, esi
jle 0x405c8a
lea eax, [esp + 0x2f4]
mov dword [esp + 0x14], 2
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0xc], 3
mov dword [esp + 0x10], 5
mov dword [esp + 0x3c], eax
lea edi, [edi + esi*4]
push 0x426344
push dword [edi]
call fcn.0040c38f
add esp, 8
test eax, eax
jne 0x4051ab
lea ecx, [esp + 0x8c]
call fcn.004097b0
push 0
push 0
push 0
push 0
mov dword [esp + 0x9c], vtable.DiskWriter.0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x8000
mov dword [esp + 0x2ec], eax
mov dword [esp + 0x2d0], 0xffffffff
mov byte [esp + 0x2cc], 0
call fcn.0040b54a
add esp, 4
mov dword [esp + 0x294], eax
push 0x41d0
call fcn.0040b54a
add esp, 4
mov dword [esp + 0x2ec], eax
push 0xd680
call fcn.0040b54a
add esp, 4
mov dword [esp + 0x2f0], eax
push 0
lea ecx, [esp + 0x90]
mov dword [esp + 0x36c], 0
call fcn.00401400
lea ecx, [esp + 0x8c]
mov dword [esp + 0x368], 0xffffffff
call fcn.00401090
push 0x42634c
push dword [edi]
call fcn.0040c38f
add esp, 8
test eax, eax
jne 0x40526d
lea ecx, [esp + 0x8c]
call fcn.004097b0
push 0
push 0
push 0
push 0
mov dword [esp + 0x9c], vtable.DiskWriter.0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0x8000
mov dword [esp + 0x2ec], eax
mov dword [esp + 0x2d0], 0xffffffff
mov byte [esp + 0x2cc], 0
call fcn.0040b54a
add esp, 4
mov dword [esp + 0x294], eax
push 0x41d0
call fcn.0040b54a
add esp, 4
mov dword [esp + 0x2ec], eax
push 0xd680
call fcn.0040b54a
add esp, 4
mov dword [esp + 0x2f0], eax
push 1
lea ecx, [esp + 0x90]
mov dword [esp + 0x36c], 1
call fcn.00401400
lea ecx, [esp + 0x8c]
mov dword [esp + 0x368], 0xffffffff
call fcn.00401090
push 0x426354
push dword [edi]
call fcn.0040c38f
mov ecx, dword [esp + 0x24]
test eax, eax
mov eax, 9
push 0x42635c
push dword [edi]
cmove ecx, eax
mov dword [esp + 0x2c], ecx
call fcn.0040c38f
add esp, 0x10
test eax, eax
jne 0x4052b8
mov eax, dword [esp + 0x18]
inc esi
inc dword [esp + 0x10]
inc dword [esp + 0xc]
inc dword [esp + 0x14]
lea edi, [eax + esi*4]
mov eax, dword [edi]
mov dword [esp + 0x34], eax
push str._disk_sector_size
push dword [edi]
call fcn.0040c38f
add esp, 8
test eax, eax
jne 0x4052ef
mov eax, dword [esp + 0x18]
inc esi
push dword [eax + esi*4]
inc dword [esp + 0x14]
lea edi, [eax + esi*4]
inc dword [esp + 0x10]
inc dword [esp + 0x18]
call fcn.0040b4e1
add esp, 4
mov dword [0x42b1d8], eax
push 0x426388
push dword [edi]
call fcn.0040c38f
add esp, 8
test eax, eax
jne 0x40537b
mov edi, dword [esp + 0x18]
mov dword [esp + 0x1c], 2
mov eax, dword [edi + esi*4 + 4]
movzx eax, word [eax]
push eax
call fcn.0040c9b3
inc dword [esp + 0x14]
add esp, 4
inc dword [esp + 0xc]
test eax, eax
je 0x40536c
mov eax, edi
push dword [eax + esi*4 + 4]
call fcn.0040b4e1
inc dword [esp + 0x14]
add esi, 2
inc dword [esp + 0x10]
add esp, 4
add dword [esp + 0x14], 2
cdq
mov dword [esp + 0x44], eax
mov eax, edi
push dword [eax + esi*4]
lea edi, [eax + esi*4]
mov dword [esp + 0x3c], edx
call fcn.0040b4e1
cdq
add esp, 4
mov dword [esp + 0x3c], eax
mov dword [esp + 0x28], edx
jmp 0x40537b
inc esi
inc dword [esp + 0x14]
mov eax, dword [edi + esi*4]
lea edi, [edi + esi*4]
mov dword [esp + 0x20], eax
push 0x426390
push dword [edi]
call fcn.0040c38f
add esp, 8
test eax, eax
jne 0x405407
mov edi, dword [esp + 0x18]
mov dword [esp + 0x1c], 3
mov eax, dword [edi + esi*4 + 4]
movzx eax, word [eax]
push eax
call fcn.0040c9b3
inc dword [esp + 0x14]
add esp, 4
inc dword [esp + 0xc]
test eax, eax
je 0x4053f8
mov eax, edi
push dword [eax + esi*4 + 4]
call fcn.0040b4e1
inc dword [esp + 0x14]
add esi, 2
inc dword [esp + 0x10]
add esp, 4
add dword [esp + 0x14], 2
cdq
mov dword [esp + 0x44], eax
mov eax, edi
push dword [eax + esi*4]
lea edi, [eax + esi*4]
mov dword [esp + 0x3c], edx
call fcn.0040b4e1
cdq
add esp, 4
mov dword [esp + 0x3c], eax
mov dword [esp + 0x28], edx
jmp 0x405407
inc esi
inc dword [esp + 0x14]
mov eax, dword [edi + esi*4]
lea edi, [edi + esi*4]
mov dword [esp + 0x20], eax
push 0x426398
push dword [edi]
call fcn.0040c38f
test eax, eax
mov ecx, 5
mov eax, dword [esp + 0x24]
push 0x4263a0
push dword [edi]
cmove eax, ecx
mov dword [esp + 0x2c], eax
call fcn.0040c38f
add esp, 0x10
test eax, eax
jne 0x405463
mov eax, dword [esp + 0x18]
inc esi
mov ecx, dword [esp + 0x64]
inc dword [esp + 0x10]
inc dword [esp + 0xc]
inc dword [esp + 0x14]
lea edi, [eax + esi*4]
mov eax, dword [edi]
mov dword [ecx], eax
add ecx, 4
mov dword [esp + 0x1c], 4
mov dword [esp + 0x64], ecx
push 0x4263a8
push dword [edi]
call fcn.0040c38f
add esp, 8
test eax, eax
jne 0x4054b7
mov edi, dword [esp + 0x18]
push 3
push 0x42389c
push dword [edi + esi*4 + 4]
call fcn.0040c5c1
inc dword [esp + 0x1c]
inc esi
inc dword [esp + 0x18]
add esp, 0xc
inc dword [esp + 0x14]
lea edi, [edi + esi*4]
test eax, eax
jne 0x4054a9
mov eax, dword [edi]
add eax, 6
push eax
jmp 0x4054ab
push dword [edi]
call fcn.0040b4e1
mov dword [esp + 0x4c], eax
add esp, 4
push 0x4263b0
push dword [edi]
call fcn.0040c38f
add esp, 8
test eax, eax
jne 0x4054f2
mov eax, dword [esp + 0x18]
inc esi
push dword [eax + esi*4]
inc dword [esp + 0x14]
lea edi, [eax + esi*4]
inc dword [esp + 0x10]
inc dword [esp + 0x18]
call fcn.0040b4e1
cdq
add esp, 4
mov dword [esp + 0x3c], eax
mov dword [esp + 0x28], edx
push 0x4263b8
push dword [edi]
call fcn.0040c38f
add esp, 8
test eax, eax
jne 0x40551f
mov eax, dword [esp + 0x18]
inc esi
inc dword [esp + 0x10]
inc dword [esp + 0xc]
inc dword [esp + 0x14]
lea edi, [eax + esi*4]
mov eax, dword [edi]
mov dword [esp + 0x54], eax
push 0x4263c0
push dword [edi]
call fcn.0040c38f
add esp, 8
test eax, eax
jne 0x405554
mov eax, dword [esp + 0x18]
inc esi
inc dword [esp + 0x10]
inc dword [esp + 0xc]
inc dword [esp + 0x14]
lea edi, [eax + esi*4]
mov dword [esp + 0x1c], 4
mov eax, dword [edi]
mov dword [esp + 0x30], eax
push 0x4263c8
push dword [edi]
call fcn.0040c38f
add esp, 8
test eax, eax
jne 0x405593
mov dword [esp + 0x1c], 7
cmp esi, dword [ebp + 8]
jge 0x405593
mov eax, dword [esp + 0x18]
inc esi
push dword [eax + esi*4]
inc dword [esp + 0x14]
lea edi, [eax + esi*4]
inc dword [esp + 0x10]
inc dword [esp + 0x18]
call fcn.0040b4e1
add esp, 4
push 0x4263d0
push dword [edi]
call fcn.0040c38f
add esp, 8
test eax, eax
jne 0x405641
mov eax, dword [esp + 0x10]
cmp eax, dword [ebp + 8]
jge 0x40563c
inc dword [esp + 0xc]
inc eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], 6
push dword [eax + esi*4 + 4]
call fcn.0040b4e1
inc dword [esp + 0x14]
add esp, 4
inc dword [esp + 0xc]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x18]
push dword [eax + esi*4 + 8]
call fcn.0040b4e1
inc dword [esp + 0x14]
add esp, 4
inc dword [esp + 0xc]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x18]
push dword [eax + esi*4 + 0xc]
call fcn.0040b4e1
inc dword [esp + 0x14]
add esi, 4
inc dword [esp + 0x10]
add esp, 4
add dword [esp + 0x14], 4
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x18]
push dword [eax + esi*4]
lea edi, [eax + esi*4]
call fcn.0040b4e1
add esp, 4
mov dword [esp + 0x50], eax
jmp 0x405641
call fcn.00403860
push 0x4263d8
push dword [edi]
call fcn.0040c38f
mov ecx, dword [esp + 0x60]
test eax, eax
movzx ecx, cl
mov eax, 1
push 0x4263e0
push dword [edi]
cmove ecx, eax
mov dword [esp + 0x68], ecx
call fcn.0040c38f
add esp, 0x10
test eax, eax
jne 0x4056bf
mov ecx, dword [esp + 0xc]
cmp ecx, dword [ebp + 8]
jge 0x4056ba
mov edi, dword [esp + 0x18]
inc ecx
mov edx, dword [esp + 0x10]
mov dword [esp + 0xc], ecx
add edx, 2
inc dword [esp + 0xc]
mov ecx, dword [edi + esi*4 + 4]
add esi, 2
mov eax, dword [edi + esi*4]
lea edi, [edi + esi*4]
add dword [esp + 0x14], 2
mov dword [esp + 0x1c], 8
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x30], eax
jmp 0x4056bf
call fcn.00403860
push str._gpt
push dword [edi]
call fcn.0040c38f
test eax, eax
mov ecx, 0xc
mov eax, dword [esp + 0x24]
push str._info
push dword [edi]
cmove eax, ecx
mov dword [esp + 0x2c], eax
call fcn.0040c38f
test eax, eax
mov ecx, 0x10
mov eax, dword [esp + 0x2c]
push str._ffu
push dword [edi]
cmove eax, ecx
mov dword [esp + 0x34], eax
call fcn.0040c38f
add esp, 0x18
test eax, eax
jne 0x405741
mov eax, dword [esp + 0x14]
cmp eax, dword [ebp + 8]
jge 0x40573c
inc dword [esp + 0x10]
inc esi
inc dword [esp + 0xc]
inc eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], 0xf
lea edi, [eax + esi*4]
mov eax, dword [edi]
mov dword [esp + 0x2c], eax
jmp 0x405741
call fcn.00403860
push str._dumpffu
push dword [edi]
call fcn.0040c38f
add esp, 8
test eax, eax
jne 0x40579e
mov eax, dword [esp + 0x14]
cmp eax, dword [ebp + 8]
jge 0x405799
mov edi, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
inc dword [esp + 0xc]
add edx, 2
inc dword [esp + 0xc]
mov ecx, dword [edi + esi*4 + 4]
add esi, 2
add eax, 2
mov dword [esp + 0x2c], ecx
lea edi, [edi + esi*4]
mov dword [esp + 0x14], eax
mov eax, dword [edi]
mov dword [esp + 0x10], edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0xa
jmp 0x40579e
call fcn.00403860
push str._raw
push dword [edi]
call fcn.0040c38f
add esp, 8
test eax, eax
je 0x405a99
push str._splitffu
push dword [edi]
call fcn.0040c38f
add esp, 8
test eax, eax
jne 0x4057fb
mov eax, dword [esp + 0x14]
cmp eax, dword [ebp + 8]
jge 0x4057f6
inc dword [esp + 0x10]
inc esi
inc dword [esp + 0xc]
inc eax
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], 0xd
lea edi, [eax + esi*4]
mov eax, dword [edi]
mov dword [esp + 0x2c], eax
jmp 0x4057fb
call fcn.00403860
push str._protocol
push dword [edi]
call fcn.0040c38f
add esp, 8
test eax, eax
jne 0x4058b4
mov eax, dword [ebp + 8]
cmp dword [esp + 0x14], eax
jge 0x4058af
mov eax, dword [esp + 0x18]
mov ecx, str.STREAMING
mov eax, dword [eax + esi*4 + 4]
mov dword [esp + 0x74], eax
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x405856
test dx, dx
je 0x405852
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x405856
add eax, 4
add ecx, 4
test dx, dx
jne 0x405830
xor eax, eax
jmp 0x40585b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x40586b
mov dword [0x42b1d4], 1
jmp 0x4058b4
mov edx, dword [esp + 0x74]
mov eax, str.FIREHOSE
mov cx, word [edx]
cmp cx, word [eax]
jne 0x40589a
test cx, cx
je 0x405896
mov cx, word [edx + 2]
cmp cx, word [eax + 2]
jne 0x40589a
add edx, 4
add eax, 4
test cx, cx
jne 0x405874
xor eax, eax
jmp 0x40589f
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4058b4
mov dword [0x42b1d4], 2
jmp 0x4058b4
call fcn.00403860
push str._chipset
push dword [edi]
call fcn.0040c38f
add esp, 8
test eax, eax
jne 0x40591f
mov eax, dword [ebp + 8]
cmp dword [esp + 0x14], eax
jge 0x40591a
mov eax, dword [esp + 0x18]
push str.8960
push dword [eax + esi*4 + 4]
call fcn.0040c38f
add esp, 8
test eax, eax
jne 0x4058f5
mov dword [0x42b1dc], 0x2300
jmp 0x40591f
mov eax, dword [esp + 0x18]
push str.8974
push dword [eax + esi*4 + 4]
call fcn.0040c38f
add esp, 8
test eax, eax
jne 0x40591f
mov dword [0x42b1dc], 0x230e
jmp 0x40591f
call fcn.00403860
push str._MaxPayloadSizeToTargetInBytes
push dword [edi]
call fcn.0040c38f
add esp, 8
test eax, eax
jne 0x405967
mov eax, dword [esp + 0x14]
cmp eax, dword [ebp + 8]
jge 0x405962
inc dword [esp + 0x10]
inc eax
inc dword [esp + 0xc]
inc esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
push dword [eax + esi*4]
lea edi, [eax + esi*4]
call fcn.0040b4e1
add esp, 4
mov dword [0x42b1d0], eax
jmp 0x405967
call fcn.00403860
push str._SkipWrite
push dword [edi]
call fcn.0040c38f
movzx ecx, byte [0x42b1c9]
test eax, eax
mov eax, 1
cmove ecx, eax
mov byte [0x42b1c9], cl
push str._SkipStorageInit
push dword [edi]
call fcn.0040c38f
movzx ecx, byte [0x42b1ca]
test eax, eax
mov eax, 1
cmove ecx, eax
mov byte [0x42b1ca], cl
push str._SetActivePartition
push dword [edi]
call fcn.0040c38f
add esp, 0x18
test eax, eax
jne 0x4059f5
mov eax, dword [esp + 0x14]
cmp eax, dword [ebp + 8]
jge 0x4059f0
inc dword [esp + 0x10]
inc eax
inc dword [esp + 0xc]
inc esi
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x18]
push dword [eax + esi*4]
lea edi, [eax + esi*4]
call fcn.0040b4e1
add esp, 4
mov dword [0x42b1cc], eax
jmp 0x4059f5
call fcn.00403860
push str._MemoryName
push dword [edi]
call fcn.0040c38f
mov edi, dword [esp + 0x1c]
add esp, 8
test eax, eax
jne 0x405a7c
cmp edi, dword [ebp + 8]
jge 0x405a77
mov eax, dword [esp + 0x18]
inc esi
inc dword [esp + 0x10]
inc edi
inc dword [esp + 0xc]
push 0x426564
push dword [eax + esi*4]
call fcn.0040c38f
add esp, 8
test eax, eax
jne 0x405a49
push 0x426570
push 8
push str.emmc
call fcn.0040c8b5
add esp, 0xc
jmp 0x405a7c
mov eax, dword [esp + 0x18]
push 0x426578
push dword [eax + esi*4]
call fcn.0040c38f
add esp, 8
test eax, eax
jne 0x405a7c
push 0x426580
push 8
push str.emmc
call fcn.0040c8b5
add esp, 0xc
jmp 0x405a7c
call fcn.00403860
inc dword [esp + 0x10]
inc edi
inc dword [esp + 0xc]
inc esi
mov dword [esp + 0x14], edi
mov edi, dword [esp + 0x18]
cmp esi, dword [ebp + 8]
jl 0x4050e6
jmp 0x405abe
lea eax, [esi + 1]
cmp eax, dword [ebp + 8]
jge 0x405ab9
mov eax, dword [esp + 0x18]
mov dword [esp + 0x1c], 0xe
lea eax, [eax + esi*4]
add eax, 4
mov dword [esp + 0x60], eax
jmp 0x405abe
call fcn.00403860
mov esi, dword [esp + 0x54]
mov edi, dword [esp + 0x48]
test esi, esi
je 0x405c86
push edi
push str..COM_i
lea eax, [esp + 0x31c]
push 0x20
push eax
call fcn.0040d77d
add esp, 0x10
lea eax, [esp + 0x314]
push 0
push 0
push 3
push 0
push 1
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x42b1e0], eax
cmp eax, 0xffffffff
je 0x405b57
mov esi, dword [0x42b1e8]
lea ecx, [esp + 0x74]
push ecx
push eax
mov dword [esp + 0x84], esi
mov dword [esp + 0x7c], 0xffffffff
mov dword [esp + 0x80], 0xffffffff
mov dword [esp + 0x8c], esi
mov dword [esp + 0x88], 0xffffffff
call dword [sym.imp.KERNEL32.dll_SetCommTimeouts]
mov dword [0x42b1e8], esi
mov esi, dword [esp + 0x54]
jmp 0x405b5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x42b1dc], 0x230e
jne 0x405bae
push 0
push 1
lea ecx, [esp + 0x7c]
mov dword [esp + 0x7c], 0x42b1e0
mov dword [esp + 0x84], 0
call fcn.0040a650
test eax, eax
jne 0x405c5f
push esi
push str.Downloading_flash_programmer:__s_n
call fcn.0040b76b
add esp, 8
lea ecx, [esp + 0x74]
push esi
call fcn.0040a250
jmp 0x405c5f
lea eax, [esp + 0x74]
mov byte [esp + 0x68], 0
push eax
lea eax, [esp + 0x318]
mov dword [esp + 0x68], 0x42b1e0
push eax
xorps xmm0, xmm0
mov byte [esp + 0x2f], 6
push 1
lea eax, [esp + 0x33]
mov byte [esp + 0x320], 0
push eax
mov ecx, 0x42b1e0
movq qword [esp + 0x335], xmm0
movups xmmword [esp + 0x325], xmm0
mov dword [esp + 0x33d], 0
mov word [esp + 0x341], 0
mov byte [esp + 0x343], 0
mov dword [esp + 0x84], 0x20
call fcn.0040ab60
cmp byte [esp + 0x314], 2
je 0x405c47
mov esi, 6
push str._n_________WARNING:_Flash_programmer_failed_to_load_trying_to_continue___________n_n
call fcn.0040b76b
add esp, 4
mov byte [0x42c19d], 1
jmp 0x405caf
push esi
push str.Downloading_flash_programmer:__s_n
call fcn.0040b76b
add esp, 8
lea ecx, [esp + 0x64]
push esi
call fcn.00402b30
mov esi, eax
test eax, eax
jne 0x405c31
push str.Waiting_for_flash_programmer_to_boot_n
call fcn.0040b76b
add esp, 4
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov byte [0x42c19d], 1
jmp 0x405caf
xor esi, esi
jmp 0x405caf
mov eax, dword [esp + 0x78]
xor esi, esi
mov dword [esp + 0x38], eax
or edi, 0xffffffff
mov eax, dword [esp + 0x74]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffffe
cmp eax, 0xe
ja case.0x405cbf.11
jmp dword [eax*4 + 0x405f64]
mov esi, dword [esp + 0x34]
test esi, esi
je 0x40508c
test edi, edi
js 0x40508c
push esi
push str.Dumping_data_to_file__s_n
call fcn.0040b76b
push dword [esp + 0x28]
mov eax, dword [esp + 0x34]
mov edx, edi
push eax
mov eax, dword [esp + 0x4c]
mov ecx, esi
push eax
mov eax, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x5c]
push eax
call fcn.00404da0
add esp, 0x1c
jmp 0x405f0e
push str.Erasing_Disk_n
call fcn.0040b76b
mov eax, dword [esp + 0x2c]
add esp, 4
mov edx, dword [esp + 0x20]
mov ecx, edi
push eax
mov eax, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x50]
push eax
call fcn.00403b40
add esp, 0x10
jmp 0x405f0e
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x2c]
call fcn.004045a0
jmp 0x405f0e
push dword [esp + 0x34]
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
call fcn.004044a0
add esp, 4
jmp 0x405f0e
mov ecx, dword [esp + 0x2c]
call fcn.00404340
jmp 0x405f0e
cmp dword [esp + 0x2f4], 0
mov eax, dword [esp + 0x30]
je 0x405d91
test eax, eax
jne 0x40508c
cmp byte [0x42c19d], 0
je 0x405dad
lea edx, [esp + 0x2f4]
mov ecx, eax
call fcn.00404670
jmp 0x405f0e
push str.Programming_image_n
call fcn.0040b76b
add esp, 4
lea ecx, [esp + 0x2f4]
mov eax, edi
cdq
push edx
mov edx, dword [esp + 0x38]
push eax
call fcn.00404a60
add esp, 8
jmp 0x405f0e
push str.Wipping_Disk_n
call fcn.0040b76b
add esp, 4
test edi, edi
jle case.0x405cbf.11
mov ecx, edi
call fcn.00403d90
jmp 0x405f0e
push edi
push str.Sending_RAW_data_to_COM_i_n
call fcn.0040b76b
mov eax, dword [ebp + 8]
mov ecx, edi
mov edx, dword [esp + 0x68]
add eax, 0xfffffffc
push eax
call fcn.00403aa0
add esp, 0xc
jmp 0x405f0e
push edi
push str.Running_performance_tests_disk__i_n
call fcn.0040b76b
mov ecx, edi
call fcn.00404c70
add esp, 8
jmp 0x405f0e
push dword [esp + 0x50]
mov edi, dword [esp + 0x70]
push dword [esp + 0x50]
push dword [esp + 0x64]
push edi
push str.Create_GPP1_iMB__GPP2_iMB__GPP3_iMB__GPP4_iMB_n
call fcn.0040b76b
add esp, 0x14
cmp byte [esp + 0x58], 0
jne 0x405e85
push str.Are_you_sure___y_n_
call fcn.0040b76b
add esp, 4
call fcn.0040c951
cmp eax, 0x79
je 0x405e85
push str._nGood_choice_back_to_safety_n
call fcn.0040b76b
add esp, 4
jmp case.0x405cbf.11
push str.Sending_command_to_create_GPP_n
call fcn.0040b76b
mov eax, dword [esp + 0x54]
add esp, 4
mov edx, dword [esp + 0x5c]
shl eax, 0xb
shl edi, 0xb
push eax
mov eax, dword [esp + 0x50]
mov ecx, edi
shl eax, 0xb
push eax
shl edx, 0xb
call fcn.00403f00
mov esi, eax
add esp, 8
test esi, esi
jne case.0x405cbf.11
push str.Power_cycle_device_to_complete_operation_n
call fcn.0040b76b
add esp, 4
jmp case.0x405cbf.11
mov ecx, dword [esp + 0x30]
test ecx, ecx
je case.0x405cbf.11
mov eax, dword [esp + 0x20]
test eax, eax
je case.0x405cbf.11
test edi, edi
js case.0x405cbf.11
push ecx
mov edx, eax
mov ecx, edi
call fcn.00404190
add esp, 4
jmp 0x405f0e
call fcn.004042d0
jmp 0x405f0e
mov ecx, edi
call fcn.00404060
jmp 0x405f0e
push edi
mov ecx, 0x42b1e0
call fcn.0040a950
call fcn.00403cc0
mov esi, eax
push 0
push 0
lea eax, [esp + 0x78]
push eax
push 0x409
push esi
push 0
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
push dword [esp + 0x70]
push esi
push str.Status:__i__s_n
call fcn.0040b76b
add esp, 0xc
mov eax, esi
mov ecx, dword [esp + 0x360]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x34c]
xor ecx, esp
call fcn.0040b4d0
mov esp, ebp
pop ebp
ret