Function at 0x416390
Capabilities:
Print debug messages
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x448290
mov eax, dword fs:[0]
push eax
mov eax, 0x2060
call fcn.00435100
mov eax, dword [0x457a00]
xor eax, esp
mov dword [esp + 0x2058], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x457a00]
xor eax, esp
push eax
lea eax, [esp + 0x2074]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0x2084]
mov ebp, dword [esp + 0x208c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x2090]
xor ebx, ebx
cmp ebp, ebx
mov dword [esp + 0x60], eax
je 0x4163f8
cmp edi, ebx
jne 0x41640d
cmp eax, ebx
je case.0x41642a.19
cmp dword [esp + 0x2094], ebx
je case.0x41642a.19
movzx eax, byte [esp + 0x2088]
add eax, 0xffffffff
cmp eax, 0xef
ja case.0x41642a.19
movzx ecx, byte [eax + 0x416fc4]
jmp dword [ecx*4 + 0x416f70]
mov dword [esp + 0x1c], str.Primary_Boot_Loader
jmp 0x41651e
mov dword [esp + 0x1c], str.QC_2ndary_Boot_Loader_Header_and_Config_Data
jmp 0x41651e
mov dword [esp + 0x1c], str.QC_2ndary_Boot_Loader
jmp 0x41651e
mov dword [esp + 0x1c], str.OEM_2ndary_Boot_Loader
jmp 0x41651e
mov dword [esp + 0x1c], str.AMSS_modem_executable
jmp 0x41651e
mov dword [esp + 0x1c], str.APPS_executable
jmp 0x41651e
mov dword [esp + 0x1c], str.OTP_Boot_Loader
jmp 0x41651e
mov dword [esp + 0x1c], str.FOTA_UI_binary
jmp 0x41651e
mov dword [esp + 0x1c], str.Modem_CEFS_image
jmp 0x41651e
mov dword [esp + 0x1c], str.APPS_Boot_Loader
jmp 0x41651e
mov dword [esp + 0x1c], str.APPS_CEFS_image
jmp 0x41651e
mov dword [esp + 0x1c], str.Flash.bin_image_for_Windows_mobile
jmp 0x41651e
mov eax, dword [0x45b80c]
cmp eax, 2
je 0x4164da
cmp eax, 3
je 0x4164da
mov dword [esp + 0x1c], str.PC_Suit_image
jmp 0x41651e
mov dword [esp + 0x1c], str.Fail_Safe_Boot_Loader
jmp 0x41651e
mov dword [esp + 0x1c], str.DSP1_runtime_image
jmp 0x41651e
mov dword [esp + 0x1c], str.Image_for_user_defined_partition
jmp 0x41651e
mov dword [esp + 0x1c], str.Device_Boot_Loader
jmp 0x41651e
mov dword [esp + 0x1c], str.OS_Boot_Loader
jmp 0x41651e
mov dword [esp + 0x1c], str.DSP2_runtime_image
jmp 0x41651e
mov dword [esp + 0x1c], str.APPS_Raw_image
xor eax, eax
mov dword [0x45b828], eax
mov dword [0x45b82c], eax
mov dword [0x45b830], eax
mov eax, dword [esp + 0x1c]
mov dword [0x45b828], eax
lea edx, [eax + 1]
jmp 0x416540
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x416540
sub eax, edx
mov dword [0x45b82c], eax
mov eax, dword [0x45b820]
cmp eax, ebx
mov byte [0x45b830], bl
je 0x41656a
push 0x45b828
push ebx
call eax
add esp, 8
push 0xfff
lea edx, [esp + 0x71]
push ebx
push edx
mov byte [esp + 0x2f], 0x7e
mov byte [esp + 0x78], bl
call fcn.00433570
add esp, 0xc
push 0xfff
lea eax, [esp + 0x1071]
push ebx
push eax
mov byte [esp + 0x1078], bl
call fcn.00433570
add esp, 0xc
mov dword [esp + 0x24], ebx
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x50], ebx
mov dword [esp + 0x54], ebx
mov cl, byte [esp + 0x2088]
mov dword [esp + 0x207c], ebx
lea ebx, [esp + 0x18]
lea esi, [esp + 0x48]
mov byte [esp + 0x18], cl
call fcn.00424280
test ebp, ebp
je 0x4165fa
test edi, edi
je 0x4165fa
push ebp
mov ebx, edi
call fcn.00423f10
cmp byte [esp + 0x2088], 0xe
jne 0x4165fa
lea ebx, [esp + 0x18]
mov byte [esp + 0x18], 0
call fcn.00424280
push 0x1c
call fcn.0042501f
add esp, 4
mov dword [esp + 0x34], eax
test eax, eax
mov byte [esp + 0x207c], 1
je 0x41662a
push 2
push 0x1b
push eax
lea ecx, [esp + 0x54]
call fcn.00423270
mov esi, eax
mov dword [esp + 0x28], eax
jmp 0x416630
xor esi, esi
mov dword [esp + 0x28], esi
mov byte [esp + 0x207c], 0
call fcn.00423af0
mov eax, dword [esi + 4]
test eax, eax
je 0x41664b
mov edx, dword [esi + 8]
sub edx, eax
jne 0x416650
call fcn.00430872
mov eax, dword [esi + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 4]
test eax, eax
jne 0x416664
mov dword [esp + 0x30], eax
jmp 0x41666d
mov ecx, dword [esi + 8]
sub ecx, eax
mov dword [esp + 0x30], ecx
mov ebp, 1
cmp dword [0x45b81c], ebp
jne 0x416683
mov edx, dword [esp + 0x40]
mov edi, dword [edx + 4]
jmp 0x416687
mov edi, dword [esp + 0x40]
or ebx, 0xffffffff
cmp edi, ebx
je 0x41681f
lea eax, [esp + 0x23]
mov dword [edi + 0x184], eax
mov dword [edi + 0x18c], ebp
mov dword [edi + 0x190], ebp
mov byte [edi + 0x194], 0
xor esi, esi
mov eax, dword [0x45b820]
test eax, eax
je 0x4166c6
lea ecx, [esp + 0x2c]
push ecx
push 2
call eax
add esp, 8
cmp byte [edi + 0x14], 0
jne 0x4166d0
xor al, al
jmp 0x416727
cmp byte [edi + 0x15], 0
mov eax, dword [esp + 0x30]
jne 0x4166e8
mov edx, dword [esp + 0x2c]
push edx
mov ecx, edi
call fcn.00422460
jmp 0x4166f5
mov ecx, dword [esp + 0x2c]
push eax
push ecx
mov eax, edi
call fcn.00422260
test al, al
jne 0x41670d
push edi
call fcn.004226b0
test al, al
jne 0x416709
mov dword [edi + 0x298], ebx
xor al, al
jmp 0x416727
lea edx, [esp + 0x24]
push edx
push 0x1000
lea edx, [esp + 0x74]
mov ecx, edi
call fcn.00422bc0
test al, al
setne al
movzx eax, al
test eax, eax
mov dword [esp + 0x18], eax
jne 0x41674c
cmp dword [edi + 0x298], ebx
jne 0x41673f
mov esi, 0x19
mov eax, esi
add esi, ebp
cmp eax, 0x19
jl 0x4166b1
mov esi, dword [esp + 0x24]
xor ebp, ebp
mov dword [esp + 0x44], 0x1000
lea ebx, [ebx]
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x1078]
push ecx
push esi
lea edx, [esp + 0x80]
push edx
push eax
call fcn.00423420
mov ebx, dword [esp + 0x18]
test ebx, ebx
jne 0x416809
push esi
lea ecx, [esp + 0x70]
push ebx
push ecx
call fcn.00433570
add esp, 0xc
push 0x1000
lea edx, [esp + 0x1070]
push ebx
push edx
call fcn.00433570
add esp, 0xc
push str.call_the_printfinfo....
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [esp + 0x24]
push eax
push 0x1000
lea edx, [esp + 0x74]
mov ecx, edi
call fcn.00422bc0
movzx eax, al
test eax, eax
jne 0x4167ec
cmp dword [edi + 0x298], 0xffffffff
jne 0x4167ec
mov ebp, 0x19
mov ecx, ebp
xor ebx, ebx
add ebp, 1
cmp ecx, 2
mov dword [esp + 0x18], ebx
jge 0x416809
mov esi, dword [esp + 0x24]
cmp esi, 4
jge 0x416760
mov esi, dword [esp + 0x28]
call fcn.00423e00
push esi
call fcn.0042504a
add esp, 4
test ebx, ebx
jne 0x416852
lea esi, [esp + 0x48]
call fcn.00423e00
xor eax, eax
mov ecx, dword [esp + 0x2074]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2058]
xor ecx, esp
call fcn.0042fb8f
add esp, 0x206c
ret
cmp byte [esp + 0x106c], 0
jne 0x41681f
lea ebx, [esp + 0x48]
call fcn.00424230
xor edi, edi
xor eax, eax
mov dword [0x45b828], eax
mov dword [0x45b82c], eax
mov dword [0x45b830], eax
mov eax, dword [esp + 0x1c]
mov dword [0x45b828], eax
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x416884
sub eax, edx
mov dword [0x45b82c], eax
mov eax, dword [0x45b820]
cmp eax, edi
mov byte [0x45b830], 5
je 0x4168af
push 0x45b828
push edi
call eax
add esp, 8
xor esi, esi
cmp dword [esp + 0x60], edi
mov dword [esp + 0x58], edi
je 0x416c6c
mov ebx, dword [esp + 0x2094]
cmp ebx, edi
je 0x416c6c
mov eax, ebx
shr eax, 0xa
test eax, eax
mov dword [esp + 0x34], eax
fild dword [esp + 0x34]
jge 0x4168e5
fadd qword [0x451b50]
fst qword [esp + 0x64]
fdiv qword [0x451b48]
fnstcw word [esp + 0x18]
movzx eax, word [esp + 0x18]
or eax, 0xc00
mov dword [esp + 0x3c], eax
fldcw word [esp + 0x3c]
fistp qword [esp + 0x34]
mov eax, dword [esp + 0x34]
cmp eax, 1
mov dword [esp + 0x5c], eax
fldcw word [esp + 0x18]
jae 0x416922
mov dword [esp + 0x5c], 1
mov dword [esp + 0x44], 0x1000
mov edi, dword [esp + 0x40]
push 0
push esi
lea eax, [esp + 0x50]
or ebp, 0xffffffff
call fcn.00423e60
lea ecx, [esi + 0x400]
cmp ecx, ebx
mov dword [esp + 0x34], ecx
jbe 0x416952
sub ebx, esi
movzx eax, bx
jmp 0x416957
mov eax, 0x400
mov edx, dword [esp + 0x60]
movzx ebx, ax
lea eax, [edx + ecx - 0x400]
push eax
lea esi, [esp + 0x4c]
call fcn.00423f10
push 0x1c
call fcn.0042501f
add esp, 4
mov dword [esp + 0x3c], eax
test eax, eax
mov byte [esp + 0x207c], 2
je 0x41699d
push 2
push 7
push eax
mov ecx, esi
call fcn.00423270
mov esi, eax
mov dword [esp + 0x28], eax
jmp 0x4169a3
xor esi, esi
mov dword [esp + 0x28], esi
mov byte [esp + 0x207c], 0
call fcn.00423af0
mov eax, dword [esi + 4]
test eax, eax
je 0x4169be
mov ecx, dword [esi + 8]
sub ecx, eax
jne 0x4169c3
call fcn.00430872
mov edx, dword [esi + 4]
mov dword [esp + 0x2c], edx
mov eax, dword [esi + 4]
test eax, eax
jne 0x4169d7
mov dword [esp + 0x30], eax
jmp 0x4169e0
mov ecx, dword [esi + 8]
sub ecx, eax
mov dword [esp + 0x30], ecx
mov ebx, 1
cmp dword [0x45b81c], ebx
jne 0x4169f0
mov edi, dword [edi + 4]
cmp edi, ebp
je 0x41681f
lea edx, [esp + 0x23]
mov dword [edi + 0x184], edx
mov dword [edi + 0x18c], ebx
mov dword [edi + 0x190], ebx
mov byte [edi + 0x194], 0
xor esi, esi
mov eax, dword [0x45b820]
test eax, eax
je 0x416a2c
lea ecx, [esp + 0x2c]
push ecx
push 2
call eax
add esp, 8
cmp byte [edi + 0x14], 0
jne 0x416a36
xor al, al
jmp 0x416a8d
cmp byte [edi + 0x15], 0
mov eax, dword [esp + 0x30]
jne 0x416a4e
mov edx, dword [esp + 0x2c]
push edx
mov ecx, edi
call fcn.00422460
jmp 0x416a5b
mov ecx, dword [esp + 0x2c]
push eax
push ecx
mov eax, edi
call fcn.00422260
test al, al
jne 0x416a73
push edi
call fcn.004226b0
test al, al
jne 0x416a6f
mov dword [edi + 0x298], ebp
xor al, al
jmp 0x416a8d
lea edx, [esp + 0x24]
push edx
push 0x1000
lea edx, [esp + 0x74]
mov ecx, edi
call fcn.00422bc0
test al, al
setne al
movzx eax, al
test eax, eax
mov dword [esp + 0x18], eax
jne 0x416ab2
cmp dword [edi + 0x298], ebp
jne 0x416aa5
mov esi, 0x19
mov eax, esi
add esi, ebx
cmp eax, 0x19
jl 0x416a17
mov esi, dword [esp + 0x24]
xor ebp, ebp
jmp 0x416ac0
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x1078]
push ecx
push esi
lea edx, [esp + 0x80]
push edx
push eax
call fcn.00423420
mov ebx, dword [esp + 0x18]
test ebx, ebx
jne 0x416b69
push esi
lea ecx, [esp + 0x70]
push ebx
push ecx
call fcn.00433570
add esp, 0xc
push 0x1000
lea edx, [esp + 0x1070]
push ebx
push edx
call fcn.00433570
add esp, 0xc
push str.call_the_printfinfo....
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [esp + 0x24]
push eax
push 0x1000
lea edx, [esp + 0x74]
mov ecx, edi
call fcn.00422bc0
movzx eax, al
test eax, eax
jne 0x416b4c
cmp dword [edi + 0x298], 0xffffffff
jne 0x416b4c
mov ebp, 0x19
mov ecx, ebp
xor ebx, ebx
add ebp, 1
cmp ecx, 2
mov dword [esp + 0x18], ebx
jge 0x416b69
mov esi, dword [esp + 0x24]
cmp esi, 4
jge 0x416ac0
mov esi, dword [esp + 0x28]
call fcn.00423e00
push esi
call fcn.0042504a
add esp, 4
test ebx, ebx
je 0x41681f
lea ebx, [esp + 0x48]
call fcn.00424230
mov ecx, dword [esp + 0x58]
add ecx, 1
xor edx, edx
mov eax, ecx
div dword [esp + 0x5c]
mov esi, dword [esp + 0x34]
mov dword [esp + 0x58], ecx
test edx, edx
jne 0x416c4c
test ecx, ecx
mov dword [esp + 0x34], ecx
fild dword [esp + 0x34]
jge 0x416bbd
fadd qword [0x451b50]
fdiv qword [esp + 0x64]
xor eax, eax
mov dword [0x45b828], eax
mov dword [0x45b82c], eax
mov dword [0x45b830], eax
mov eax, dword [esp + 0x1c]
mov dword [0x45b828], eax
lea edx, [eax + 1]
fmul qword [0x451b48]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x416be4
fadd qword [0x451b40]
sub eax, edx
fld qword [0x451b38]
mov dword [0x45b82c], eax
fcom st(1)
fnstsw ax
test ah, 5
jp 0x416c0d
fstp st(1)
jmp 0x416c0f
fstp st(0)
fnstcw word [esp + 0x18]
movzx eax, word [esp + 0x18]
or eax, 0xc00
mov dword [esp + 0x34], eax
mov eax, dword [0x45b820]
test eax, eax
fldcw word [esp + 0x34]
fistp dword [esp + 0x34]
mov dl, byte [esp + 0x34]
mov byte [0x45b830], dl
fldcw word [esp + 0x18]
je 0x416c4c
push 0x45b828
push 0
call eax
add esp, 8
cmp esi, dword [esp + 0x2094]
jae 0x416c61
mov ebx, dword [esp + 0x2094]
jmp 0x41692a
lea ebx, [esp + 0x48]
call fcn.00424230
xor edi, edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1c
call fcn.0042501f
mov esi, eax
add esp, 4
mov dword [esp + 0x3c], esi
cmp esi, edi
je 0x416d1f
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0xc], edi
mov byte [esp + 0x207c], 4
lea ebx, [esp + 0x18]
mov byte [esp + 0x18], 0x7e
call fcn.00424280
lea ebx, [esp + 0x18]
mov byte [esp + 0x18], 0x15
call fcn.00424280
mov eax, dword [esi + 4]
test eax, eax
je 0x416cc7
mov ecx, dword [esi + 8]
sub ecx, eax
jne 0x416ccc
call fcn.00430872
mov eax, dword [esi + 4]
add eax, 1
mov ecx, 1
call fcn.00424fd0
movzx eax, ax
lea ebx, [esp + 0x18]
mov dword [esp + 0x34], eax
mov byte [esp + 0x18], al
call fcn.00424280
mov dl, byte [esp + 0x35]
lea ebx, [esp + 0x18]
mov byte [esp + 0x18], dl
call fcn.00424280
lea ebx, [esp + 0x18]
mov byte [esp + 0x18], 0x7e
call fcn.00424280
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], 2
jmp 0x416d21
xor esi, esi
mov dword [esp + 0x28], esi
mov byte [esp + 0x207c], 0
call fcn.00423af0
mov eax, dword [esi + 4]
test eax, eax
je 0x416d40
mov ecx, dword [esi + 8]
sub ecx, eax
jne 0x416d45
call fcn.00430872
mov edx, dword [esi + 4]
mov dword [esp + 0x2c], edx
mov eax, dword [esi + 4]
test eax, eax
jne 0x416d59
mov dword [esp + 0x30], eax
jmp 0x416d62
mov ecx, dword [esi + 8]
sub ecx, eax
mov dword [esp + 0x30], ecx
mov ebp, 1
cmp dword [0x45b81c], ebp
jne 0x416d78
mov edx, dword [esp + 0x40]
mov edi, dword [edx + 4]
jmp 0x416d7c
mov edi, dword [esp + 0x40]
or ebx, 0xffffffff
cmp edi, ebx
je 0x41681f
lea eax, [esp + 0x23]
mov dword [edi + 0x184], eax
mov dword [edi + 0x18c], ebp
mov dword [edi + 0x190], ebp
mov byte [edi + 0x194], 0
xor esi, esi
mov eax, dword [0x45b820]
test eax, eax
je 0x416dbb
lea ecx, [esp + 0x2c]
push ecx
push 2
call eax
add esp, 8
cmp byte [edi + 0x14], 0
jne 0x416dc5
xor al, al
jmp 0x416e1c
cmp byte [edi + 0x15], 0
mov eax, dword [esp + 0x30]
jne 0x416ddd
mov edx, dword [esp + 0x2c]
push edx
mov ecx, edi
call fcn.00422460
jmp 0x416dea
mov ecx, dword [esp + 0x2c]
push eax
push ecx
mov eax, edi
call fcn.00422260
test al, al
jne 0x416e02
push edi
call fcn.004226b0
test al, al
jne 0x416dfe
mov dword [edi + 0x298], ebx
xor al, al
jmp 0x416e1c
lea edx, [esp + 0x24]
push edx
push 0x1000
lea edx, [esp + 0x74]
mov ecx, edi
call fcn.00422bc0
test al, al
setne al
movzx eax, al
test eax, eax
mov dword [esp + 0x18], eax
jne 0x416e41
cmp dword [edi + 0x298], ebx
jne 0x416e34
mov esi, 0x19
mov eax, esi
add esi, ebp
cmp eax, 0x19
jl 0x416da6
mov esi, dword [esp + 0x24]
xor ebp, ebp
mov dword [esp + 0x44], 0x1000
nop
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x34]
lea ecx, [esp + 0x1078]
push ecx
push esi
lea edx, [esp + 0x80]
push edx
push eax
call fcn.00423420
mov ebx, dword [esp + 0x18]
test ebx, ebx
jne 0x416ef9
push esi
lea ecx, [esp + 0x70]
push ebx
push ecx
call fcn.00433570
add esp, 0xc
push 0x1000
lea edx, [esp + 0x1070]
push ebx
push edx
call fcn.00433570
add esp, 0xc
push str.call_the_printfinfo....
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea eax, [esp + 0x24]
push eax
push 0x1000
lea edx, [esp + 0x74]
mov ecx, edi
call fcn.00422bc0
movzx eax, al
test eax, eax
jne 0x416edc
cmp dword [edi + 0x298], 0xffffffff
jne 0x416edc
mov ebp, 0x19
mov ecx, ebp
xor ebx, ebx
add ebp, 1
cmp ecx, 2
mov dword [esp + 0x18], ebx
jge 0x416ef9
mov esi, dword [esp + 0x24]
cmp esi, 4
jge 0x416e50
mov esi, dword [esp + 0x28]
call fcn.00423e00
push esi
call fcn.0042504a
add esp, 4
test ebx, ebx
je 0x41681f
xor eax, eax
mov dword [0x45b828], eax
mov dword [0x45b82c], eax
mov dword [0x45b830], eax
mov eax, dword [esp + 0x1c]
mov dword [0x45b828], eax
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x416f30
sub eax, edx
mov dword [0x45b82c], eax
mov eax, dword [0x45b820]
test eax, eax
mov byte [0x45b830], 0x64
je 0x416f5c
push 0x45b828
push 0
call eax
add esp, 8
lea esi, [esp + 0x48]
call fcn.00423e00
mov eax, 1
jmp 0x41682a