Function at 0x40b9c0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x470cc1
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x48b670]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x44]
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0
call fcn.0041a82f
mov ebx, 1
push 0x47a404
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], ebx
call fcn.00404890
mov byte [esp + 0x38], 2
mov eax, dword [esp + 0x40]
push str.SDBoot.bin
add eax, 0x24c
push eax
lea ecx, [esp + 0x24]
push ecx
call fcn.0040c5e0
add esp, 0xc
push 0
mov byte [esp + 0x3c], 3
mov eax, dword [eax]
push 0x8000
push eax
lea ecx, [esp + 0x2c]
call fcn.0041aca7
mov esi, eax
mov byte [esp + 0x38], 2
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x40], esi
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ba77
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test esi, esi
jne 0x40bad5
cmp dword [0x4a120c], esi
je 0x40ba9e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4a120c]
push eax
push str.Error:GetSDBootVersion___Open_SDBoot.bin_failed_err_d
push ecx
call fcn.00451cb0
add esp, 0xc
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
push eax
call fcn.00403750
add esp, 4
add eax, 0x10
mov dword [ebp], eax
mov byte [esp + 0x38], bl
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x18], ebx
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40bc36
lea ecx, [esp + 0x20]
call fcn.0041a71a
mov edi, eax
push edi
call fcn.00411469
mov esi, eax
add esp, 4
mov dword [esp + 0x1c], esi
lea ecx, [esp + 0x20]
test esi, esi
jne 0x40bb1c
call fcn.0041a7c9
mov eax, dword [0x4a120c]
test eax, eax
je 0x40bc04
push str.Error:GetSDBootVersion___new_SDBoot.bin_memory_failed
push eax
call fcn.00451cb0
add esp, 8
jmp 0x40bc04
push edi
push esi
call fcn.0041a523
lea ecx, [esp + 0x20]
cmp eax, edi
je 0x40bb78
call fcn.0041a7c9
push esi
call fcn.00411474
add esp, 4
cmp dword [0x4a120c], 0
je 0x40bb5d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4a120c]
push eax
push str.Error:GetSDBootVersion___Read_SDBoot.bin_failed_err_d
push ecx
call fcn.00451cb0
add esp, 0xc
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
push eax
call fcn.00403750
add esp, 4
add eax, 0x10
mov dword [ebp], eax
jmp 0x40bab4
call fcn.0041a7c9
push 0x44
call fcn.0041143a
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x40bba3
push edi
mov eax, esi
lea edi, [esp + 0x44]
mov esi, ecx
call fcn.00404a90
mov esi, dword [esp + 0x1c]
mov edi, eax
jmp 0x40bba5
xor edi, edi
cmp dword [esp + 0x40], 0
jne 0x40bbdb
test edi, edi
je 0x40bbb9
mov esi, edi
call fcn.00405320
jmp 0x40bbc2
push esi
call fcn.00411474
add esp, 4
mov eax, dword [0x4a120c]
test eax, eax
je 0x40bc04
push str.Error:GetSDBootVersion___create_boot_object_failed
push eax
call fcn.00451cb0
add esp, 8
jmp 0x40bc04
mov eax, dword [edi + 8]
movzx ecx, al
push ecx
shr eax, 8
and eax, 0xff
push eax
lea edx, [esp + 0x1c]
push str.SDBoot:_x._02x
push edx
call fcn.00402020
add esp, 0x10
mov esi, edi
call fcn.00405320
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
push eax
call fcn.00403750
add eax, 0x10
mov dword [ebp], eax
mov byte [esp + 0x3c], bl
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 4
mov dword [esp + 0x18], ebx
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40bc42
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea ecx, [esp + 0x20]
mov byte [esp + 0x38], 0
call fcn.0041a937
mov eax, ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 8