Function at 0x411510
Capabilities:
Enumerate pe sections
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x478
mov eax, dword [0x828208]
xor eax, esp
mov dword [esp + 0x474], eax
mov eax, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x14]
push 0x200
mov dword [esp + 0x18], eax
lea eax, [esp + 0x17c]
push 0
push eax
mov dword [esp + 0x24], esi
call fcn.0048ff50
add esp, 0xc
lea eax, [esp + 0x378]
push 0x100
push 0
push eax
call fcn.0048ff50
add esp, 0xc
lea eax, [esp + 0x78]
push 0x100
push 0
push eax
call fcn.0048ff50
mov eax, dword [0x8483c4]
add esp, 0xc
test byte [eax + 4], 2
je 0x411cc9
push 0
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push 0
push eax
call fcn.0042cbe0
add esp, 0xc
mov dword [esp + 0x2c], 0x160011
lea eax, [esp + 0x2c]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
push eax
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], 0xfffffffd
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 0
call fcn.0043cbe0
add esp, 4
push 2
call fcn.0043c980
add esp, 4
lea eax, [esp + 0x2c]
push eax
call fcn.0043cbb0
add esp, 4
cmp dword [esp + 0x40], 0
jne 0x411ddd
movzx eax, byte [esp + 0x44]
movzx esi, byte [esp + 0x48]
mov dword [esp + 0x20], eax
mov dword [0x828dc4], esi
mov dword [0x8484cc], 0x867df4
test eax, eax
je 0x411d4c
cmp esi, 2
jae 0x411698
mov dword [0x828dc4], 2
mov esi, 2
nop
mov edx, esi
mov ecx, 0x867df0
call fcn.0040cd50
movzx ecx, al
test al, al
je 0x411680
mov eax, dword [0x8484cc]
movzx eax, byte [eax + 0x5c]
cmp eax, esi
je 0x4116f5
inc esi
cmp esi, 6
jl 0x411660
mov esi, dword [0x828dc4]
test ecx, ecx
je 0x411d91
mov eax, dword [esp + 0x20]
test eax, eax
je 0x411d4c
cmp eax, 1
je 0x4116fd
push 0
push 0x100
lea eax, [esp + 0x180]
xor edx, edx
push eax
push 0
mov ecx, 0x10000044
call fcn.00406e10
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x188]
mov ecx, dword [esp + 0x28]
push 3
push eax
call fcn.00408110
push dword [0x828dc4]
push str.Error:_Too_many_docks_attached_n
push dword [esp + 0x3c]
call fcn.0040abf0
add esp, 0x24
jmp 0x411d91
mov dword [0x828dc4], esi
jmp 0x41168c
mov edx, esi
mov dword [esp + 0x28], 0x867df0
lea ecx, [esp + 0x28]
call fcn.0040cd50
test al, al
jne 0x41178c
mov eax, dword [0x867ad0]
mov ecx, 0x126
test eax, eax
push 0
cmove eax, ecx
xor edx, edx
mov dword [0x867ad0], eax
mov ecx, 0x10000048
push 0x100
lea eax, [esp + 0x180]
push eax
push 0
call fcn.00406e10
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x188]
mov ecx, dword [esp + 0x28]
push 4
push eax
call fcn.00408110
or dword [edi], 0x200
push str.GetDockInfo_Failed_n
push dword [esp + 0x38]
call fcn.0040abf0
add esp, 0x20
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x474]
xor ecx, esp
call fcn.0048980e
mov esp, ebp
pop ebp
ret
mov esi, dword [esp + 0x1c]
push str._________________________________________________n
push esi
call fcn.0040abf0
push str.Dock_Info_Record_defined_in_DSIS_3.0.10__Class:17__Select:22_n
push esi
call fcn.0040abf0
mov eax, dword [0x8484cc]
movzx eax, byte [eax]
push eax
push str.Dock_Info_version___0x_02x_n
push esi
call fcn.0040abf0
mov eax, dword [0x8484cc]
add esp, 0x1c
movzx eax, byte [eax + 1]
push eax
push str.Dock_Type___________0x_02x_n
push esi
call fcn.0040abf0
mov eax, dword [0x8484cc]
add esp, 0xc
movzx eax, byte [eax + 0x5e]
push eax
push str.Dock_Info_count______d_n
push esi
call fcn.0040abf0
mov eax, dword [0x8484cc]
add esp, 0xc
movzx eax, byte [eax + 0x5c]
push eax
push str.Dock_Info_location___d_n
push esi
call fcn.0040abf0
mov eax, dword [0x8484cc]
add esp, 0xc
push dword [eax + 0x58]
push str.Dock_Info_cable_Type_0x_02x_n
push esi
call fcn.0040abf0
mov eax, dword [0x8484cc]
add esp, 0xc
push dword [eax + 0x54]
push str.Dock_Info_flash_spec_ver_0x_08x_n
push esi
call fcn.0040abf0
mov eax, dword [0x8484cc]
add esp, 0xc
cmp byte [eax + 1], 1
jne 0x411860
sub esp, 8
lea eax, [esp + 0x80]
mov ecx, 0x10000049
push 0x100
push eax
push 0
call fcn.00407180
mov eax, dword [0x8484cc]
add esp, 0x14
cmp byte [eax + 1], 2
jne 0x41188a
sub esp, 8
lea eax, [esp + 0x80]
mov ecx, 0x1000004a
push 0x100
push eax
push 0
call fcn.00407180
mov eax, dword [0x8484cc]
add esp, 0x14
mov cl, byte [eax + 1]
cmp cl, 3
je 0x41189c
cmp cl, 4
je 0x41189c
cmp cl, 5
jne 0x4118c0
sub esp, 8
lea eax, [esp + 0x80]
mov ecx, 0x10000073
push 0x100
push eax
push 0
call fcn.00407180
mov eax, dword [0x8484cc]
add esp, 0x14
cmp byte [eax + 1], 0
jne 0x4118e5
sub esp, 8
lea eax, [esp + 0x80]
mov ecx, 0x1000004b
push 0x100
push eax
push 0
call fcn.00407180
add esp, 0x14
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x37c]
push str.Dock_description_____s_n
push eax
call fcn.00402130
add esp, 0xc
lea eax, [esp + 0x378]
push eax
push esi
call fcn.0040abf0
push str._________________________________________________n
push esi
call fcn.0040abf0
push str.GetDockInfo_Successful._n
push esi
call fcn.0040abf0
mov eax, dword [0x8484cc]
add esp, 0x18
mov eax, dword [eax + 0x54]
mov edx, eax
mov dword [0x86bdf8], eax
mov dword [esp + 0x14], edx
cmp eax, 0xffffff
jne 0x41194d
xor eax, eax
xor edx, edx
mov dword [0x86bdf8], eax
mov dword [esp + 0x14], edx
movzx ecx, byte [0x4da594]
movups xmm0, xmmword [str.0123456789ABCDEF]
mov byte [esp + 0x60], cl
mov ecx, edx
shr ecx, 0x10
movzx edx, cl
mov ecx, edx
mov byte [0x86be02], 0x2e
shr ecx, 4
and edx, 0xf
movups xmmword [esp + 0x50], xmm0
mov byte [0x86be05], 0x2e
mov byte [0x86be08], 0
movzx ecx, byte [esp + ecx + 0x50]
mov byte [0x86be00], cl
movzx ecx, byte [esp + edx + 0x50]
mov byte [0x86be01], cl
mov ecx, dword [esp + 0x14]
shr ecx, 8
movzx edx, cl
mov ecx, edx
and edx, 0xf
shr ecx, 4
movzx ecx, byte [esp + ecx + 0x50]
mov byte [0x86be03], cl
movzx ecx, byte [esp + edx + 0x50]
mov byte [0x86be04], cl
movzx edx, al
mov ecx, edx
and edx, 0xf
shr ecx, 4
movzx ecx, byte [esp + ecx + 0x50]
mov byte [0x86be06], cl
movzx ecx, byte [esp + edx + 0x50]
mov byte [0x86be07], cl
mov ecx, dword [0x8483c4]
mov edx, dword [ecx + 0x28]
test edx, edx
je 0x411a30
mov ecx, dword [edx + 8]
and ecx, 0x60
cmp cl, 0x60
jne 0x411a06
cmp byte [edx + 0x7c], 0
jne 0x411a0f
mov edx, dword [edx + 0x10]
test edx, edx
jne 0x4119f5
jmp 0x411a30
mov ecx, 0x86be00
mov byte [edx + 0x7d], 1
mov dword [edx + 0x84], eax
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [ecx + edx + 0xa7], al
test al, al
jne 0x411a20
push 0x86be00
lea eax, [esp + 0x7c]
push eax
push str.Dock_Type:__s_nPackage_Version:__s_n
push 0x867cf0
call fcn.00402130
mov edi, dword [0x8484cc]
xor al, al
add esp, 0x10
mov byte [esp + 0x13], al
mov dword [esp + 0x24], 1
lea ecx, [edi + 0x5f]
mov dword [esp + 0x18], ecx
cmp byte [edi + 0x5e], al
jbe 0x411ae2
mov dword [esp + 0x20], 9
movzx eax, al
imul eax, eax, 0x54
push str.Query
mov dword [esp + 0x18], eax
add eax, ecx
push eax
call fcn.0048f240
mov edi, eax
add esp, 8
test edi, edi
je 0x411ac9
xor ecx, ecx
test ecx, ecx
je 0x411a9f
mov ecx, dword [ecx + 0x10]
jmp 0x411aa7
mov eax, dword [0x8483c4]
mov ecx, dword [eax + 0x28]
test ecx, ecx
je 0x411ac9
nop dword [eax + eax]
mov esi, dword [ecx + 8]
mov eax, esi
and eax, 0x21
cmp al, 0x21
jne 0x411ac2
cmp byte [ecx + 0x7c], 0
jne 0x411b01
mov ecx, dword [ecx + 0x10]
test ecx, ecx
jne 0x411ab0
mov edi, dword [0x8484cc]
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x18]
add al, 1
mov byte [esp + 0x13], al
cmp al, byte [edi + 0x5e]
jb 0x411a74
cmp byte [0x867ced], 0
jne 0x411cc9
xor edx, edx
test edx, edx
je 0x411ca6
mov edx, dword [edx + 0x10]
jmp 0x411cae
mov eax, dword [ecx + 0x60]
test eax, eax
je 0x411a96
movq xmm0, qword [eax]
xor edx, edx
mov al, byte [eax + 8]
mov byte [esp + 0x58], al
mov eax, dword [0x828dc4]
movzx eax, al
div dword [esp + 0x20]
mov eax, dword [edi + 6]
add dl, 0x30
movq qword [esp + 0x50], xmm0
mov byte [esp + 0x50], dl
lea edx, [esp + 0x50]
cmp eax, dword [edx]
jne 0x411a96
mov eax, dword [edi + 0xa]
cmp eax, dword [edx + 4]
jne 0x411a96
movzx eax, byte [edi + 0xe]
cmp al, byte [edx + 8]
jne 0x411a96
mov edi, dword [0x8484cc]
mov al, byte [edi + 1]
cmp al, 1
jne 0x411bb5
test esi, 0x200
jne 0x411bcd
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
mov eax, dword [esi + edx + 0x50]
test eax, 0xff000000
je 0x411c48
mov edx, dword [ecx + 0x148]
test edx, edx
je 0x411bf0
cmp eax, edx
jb 0x411b99
test eax, eax
je 0x411b99
cmp eax, 0xffffffff
jne 0x411bf0
push dword [ecx + 0x84]
push str.BlackListing:_Device:Component_Version:BCD:_08x_n
push dword [esp + 0x24]
call fcn.0040abf0
add esp, 0xc
jmp 0x411ac9
cmp al, 2
jne 0x411bc1
test esi, 0x100
jmp 0x411b69
cmp al, 3
jne 0x411b6b
test esi, 0x80000
je 0x411b6b
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
movzx eax, byte [0x867ced]
cmp dword [esi + edx + 0x50], 0xff
cmove eax, dword [esp + 0x24]
mov byte [0x867ced], al
jmp 0x411b73
cmp byte [ecx + 0x7e], 9
mov eax, dword [esp + 0x18]
mov byte [ecx + 0x7d], 1
mov esi, dword [esi + eax + 0x50]
lea eax, [ecx + 0xa8]
mov dword [ecx + 0x84], esi
jne 0x411c2b
test eax, eax
je 0x411acf
mov edx, 3
mov ecx, esi
push eax
call fcn.00405650
add esp, 4
jmp 0x411acf
test eax, eax
je 0x411acf
push eax
mov edx, 2
mov ecx, esi
call fcn.00405650
add esp, 4
jmp 0x411acf
mov edx, dword [ecx + 0x14c]
test edx, edx
je 0x411c6b
cmp eax, edx
jb 0x411b99
test eax, eax
je 0x411b99
cmp eax, 0xffffffff
je 0x411b99
cmp byte [ecx + 0x7e], 9
mov eax, dword [esp + 0x18]
mov byte [ecx + 0x7d], 1
mov esi, dword [esi + eax + 0x50]
lea eax, [ecx + 0xa8]
mov dword [ecx + 0x84], esi
je 0x411c0e
test eax, eax
je 0x411acf
mov edx, 2
mov ecx, esi
push eax
call fcn.00405650
add esp, 4
jmp 0x411acf
mov eax, dword [0x8483c4]
mov edx, dword [eax + 0x28]
test edx, edx
je 0x411cc9
mov eax, dword [edx + 8]
and eax, 0x22
cmp al, 0x22
jne 0x411cc2
cmp byte [edx + 0x7c], 0
jne 0x411cdf
mov edx, dword [edx + 0x10]
test edx, edx
jne 0x411cb2
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x474]
xor ecx, esp
call fcn.0048980e
mov esp, ebp
pop ebp
ret
cmp dword [edx + 0xc], 0
mov byte [esp + 0x13], 0
jbe 0x411af1
xor eax, eax
mov esi, dword [edx + 0x30]
imul ecx, eax, 0xf8
mov eax, 1
add esi, ecx
mov dword [esp + 0x24], ecx
mov cl, byte [edi + 1]
shl eax, cl
test dword [esi + 0x24], eax
je 0x411d35
mov ecx, dword [edi + 0x58]
mov eax, 1
shl eax, cl
test dword [esi + 0x28], eax
je 0x411d35
mov byte [esi + 0x40], 1
mov eax, dword [edx + 0x28]
test eax, eax
je 0x411d31
mov ecx, dword [esp + 0x24]
mov byte [eax + ecx + 0x40], 1
mov byte [edx + 0x7d], 1
mov al, byte [esp + 0x13]
inc al
mov byte [esp + 0x13], al
movzx eax, al
cmp eax, dword [edx + 0xc]
jb 0x411cf0
jmp 0x411af1
push 0
push 0x100
lea eax, [esp + 0x180]
xor edx, edx
push eax
push 0
mov ecx, 0x10000043
call fcn.00406e10
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x188]
mov ecx, dword [esp + 0x28]
push 3
push eax
call fcn.00408110
push str.Error:_No_dock_attached_n
push dword [esp + 0x38]
call fcn.0040abf0
add esp, 0x20
mov eax, dword [0x867ad0]
mov ecx, 0x125
test eax, eax
mov dword [0x8484cc], 0
cmove eax, ecx
mov dword [0x867ad0], eax
mov eax, dword [0x8483c4]
test byte [eax + 4], 8
jne 0x411cc9
or dword [edi], 0x200
mov eax, 1
pop edi
pop esi
mov ecx, dword [esp + 0x474]
xor ecx, esp
call fcn.0048980e
mov esp, ebp
pop ebp
ret
push 0
push 0x100
lea eax, [esp + 0x180]
xor edx, edx
push eax
push 0
mov ecx, 0x10000042
call fcn.00406e10
mov edx, dword [esp + 0x24]
lea eax, [esp + 0x188]
push 4
push eax
mov ecx, esi
call fcn.00408110
or dword [edi], 0x200
add esp, 0x18
mov eax, dword [0x867ad0]
mov ecx, 0x12c
test eax, eax
cmove eax, ecx
mov ecx, dword [esp + 0x47c]
pop edi
pop esi
mov dword [0x867ad0], eax
xor ecx, esp
mov eax, 1
call fcn.0048980e
mov esp, ebp
pop ebp
ret