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

Disassembly:
push 0xffffffffffffffff
push 0x445dd0
mov eax, dword fs:[0]
push eax
sub esp, 0x48
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45accc]
xor eax, esp
push eax
lea eax, [esp + 0x5c]
mov dword fs:[0], eax
mov edi, ecx
call fcn.0041aec8
xor ecx, ecx
xor esi, esi
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40c205
push 0x80004005
call fcn.00401460
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x14], eax
mov dword [esp + 0x64], esi
call fcn.0041aec8
xor ecx, ecx
cmp eax, esi
setne cl
cmp ecx, esi
jne 0x40c233
push 0x80004005
call fcn.00401460
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
mov ebp, dword [esp + 0x74]
mov byte [esp + 0x64], 1
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], esi
lea ecx, [esp + 0x18]
cmp ebp, 1
jne 0x40c278
push 0x45ca54
call fcn.004053a0
movzx eax, byte [0x45ca49]
mov dword [esp + 0x74], 3
jmp 0x40c291
push 0x45ca58
call fcn.004053a0
movzx eax, byte [0x45ca4a]
mov dword [esp + 0x74], 4
cmp eax, esi
jne 0x40c3d7
mov ebx, dword [esp + 0x70]
push esi
push ebx
mov ecx, edi
call fcn.0040bed0
test eax, eax
je 0x40c322
lea ecx, [esp + 0x14]
push str._Error__Build_Image_Header_Info_Fail___r_n
push ecx
call fcn.004026d0
add esp, 8
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x6c]
push esi
push 0x3ee
call fcn.0041a30b
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
or ecx, 0xffffffff
lea edx, [eax + 0xc]
mov byte [esp + 0x64], 0
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c2f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x64], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40c318
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
jmp 0x40c53f
push ebp
push 0xb3
mov ecx, edi
call fcn.00409550
test eax, eax
je 0x40c34b
push ebp
lea ecx, [esp + 0x18]
push str._Error__Switch_to_Boot_Partition__d_Fail____r_n
push ecx
call fcn.004026d0
add esp, 0xc
jmp 0x40c2bc
mov ecx, dword [0x45c4f8]
movzx edx, byte [0x45ca28]
mov ebp, dword [esp + 0x6c]
push ecx
push edx
push ebp
mov ecx, edi
call fcn.0040aae0
mov esi, eax
test esi, esi
je 0x40c50c
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x24]
push ecx
push esi
push 0
push ebx
push ebp
mov ecx, edi
call fcn.0040a550
test eax, eax
jne 0x40c50c
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
mov ecx, dword [0x45c4f0]
push edx
mov edx, dword [esp + 0x78]
push eax
push esi
push ecx
push 0
push 1
push edx
push ebx
mov ecx, edi
call fcn.00409170
test eax, eax
je 0x40c525
lea eax, [esp + 0x14]
push str._Error__Save_Data_Table_Fail___r_n
push eax
call fcn.004026d0
mov ecx, dword [esp + 0x1c]
add esp, 8
push ecx
mov ecx, ebp
jmp 0x40c502
mov esi, dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
push esi
call fcn.00432e5f
add esp, 8
test eax, eax
jne 0x40c3fb
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x40]
mov eax, ebp
or eax, ebx
jne 0x40c449
lea ecx, [esp + 0x14]
push str._Error__Not_Found_BIN_File___r_n
push ecx
call fcn.004026d0
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x74]
add esp, 8
push edi
push 0x3ee
call fcn.0041a30b
lea eax, [esi - 0x10]
mov byte [esp + 0x64], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40c441
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [edi - 0x10]
jmp 0x40c2f7
push 0
push 0x200
push ebx
push ebp
call fcn.00433310
push 0
push 0x200
push ebx
push ebp
mov esi, eax
call fcn.00433250
or eax, edx
je 0x40c46c
inc esi
mov ebp, dword [esp + 0x70]
push 0
push ebp
mov ecx, edi
mov dword [0x45c4f8], esi
call fcn.0040bed0
test eax, eax
jne 0x40c2aa
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x24]
push edx
push esi
push ecx
add eax, 0xfffffff0
mov dword [esp + 0x80], esp
mov ebx, esp
push eax
call fcn.00404380
add esp, 4
add eax, 0x10
mov dword [ebx], eax
mov ebx, dword [esp + 0x7c]
push ebp
push ebx
mov ecx, edi
call fcn.0040a130
test eax, eax
jne 0x40c50c
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [0x45c4f0]
push ecx
mov ecx, dword [esp + 0x78]
push edx
push esi
push eax
push 0
push 1
push ecx
push ebp
mov ecx, edi
call fcn.00409170
test eax, eax
je 0x40c525
lea edx, [esp + 0x14]
push str._Error__Save_Data_Table_Fail___r_n
push edx
call fcn.004026d0
mov eax, dword [esp + 0x1c]
add esp, 8
push eax
mov ecx, ebx
push 0x3ee
call fcn.0041a30b
lea ecx, [esp + 0x18]
call fcn.004022f0
lea ecx, [esp + 0x14]
call fcn.004022f0
mov eax, 1
jmp 0x40c53f
add dword [0x45c4f0], esi
lea ecx, [esp + 0x18]
call fcn.004022f0
lea ecx, [esp + 0x14]
call fcn.004022f0
xor eax, eax
mov ecx, dword [esp + 0x5c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x54
ret 0xc