Function at 0x401110
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x30], eax
mov edi, 0xf
test ebx, ebx
je 0x40114c
mov ecx, ebx
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401140
sub ecx, edx
lea edi, [ecx + 0xf]
push edi
call fcn.00406f81
mov esi, eax
add esp, 4
test esi, esi
je 0x401180
push str.Error_loading
push edi
push esi
mov byte [esi], 0
call fcn.00406ca0
add esp, 0xc
test ebx, ebx
je 0x401180
push ebx
push edi
push esi
call fcn.00406ca0
add esp, 0xc
mov edi, esi
jmp 0x40118b
mov edi, esi
mov eax, 1
test esi, esi
je 0x40119c
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401190
sub ecx, edx
lea eax, [ecx + 1]
inc eax
push eax
mov dword [ebp - 0x28], eax
call fcn.00406f81
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4011e2
mov edi, dword [ebp - 0x28]
mov byte [ebx], 0
test esi, esi
je 0x4011c4
push esi
push edi
push ebx
call fcn.00406ca0
add esp, 0xc
push 0x419944
push edi
push ebx
call fcn.00406ca0
add esp, 0xc
test esi, esi
je 0x4011e0
push esi
call fcn.00406c85
add esp, 4
mov edi, ebx
mov ebx, dword [ebp - 0x30]
test ebx, ebx
je 0x401313
push ebx
push str.Error__08I32X
lea eax, [ebp - 0x24]
mov dword [ebp - 0x2c], 0
push 0x1e
push eax
call fcn.004010d0
add esp, 0x10
lea eax, [ebp - 0x2c]
push 0
push 0
push eax
push 0x400
push ebx
push 0
push 0x13ff
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
lea eax, [ebp - 0x24]
push eax
call fcn.00404d50
mov esi, eax
add esp, 4
test esi, esi
je 0x401322
cmp dword [ebp - 0x2c], 0
je 0x401322
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401248
sub ecx, edx
lea eax, [ecx + 3]
push eax
mov dword [ebp - 0x28], eax
call fcn.00406f81
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40128c
push esi
push dword [ebp - 0x28]
mov byte [ebx], 0
push ebx
call fcn.00406ca0
push 0x41991c
push dword [ebp - 0x28]
push ebx
call fcn.00406ca0
push esi
call fcn.00406c85
add esp, 0x1c
mov esi, ebx
mov eax, dword [ebp - 0x2c]
mov edx, esi
mov ecx, eax
mov dword [ebp - 0x30], eax
lea ebx, [edx + 1]
nop dword [eax]
mov al, byte [edx]
inc edx
test al, al
jne 0x4012a0
sub edx, ebx
inc edx
mov dword [ebp - 0x28], edx
test ecx, ecx
je 0x4012c2
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4012b4
sub ecx, ebx
add edx, ecx
mov dword [ebp - 0x28], edx
push edx
call fcn.00406f81
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x401308
mov byte [ebx], 0
test esi, esi
je 0x4012e5
push esi
push dword [ebp - 0x28]
push ebx
call fcn.00406ca0
add esp, 0xc
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x4012f9
push eax
push dword [ebp - 0x28]
push ebx
call fcn.00406ca0
add esp, 0xc
test esi, esi
je 0x401306
push esi
call fcn.00406c85
add esp, 4
mov esi, ebx
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x401322
push str.Unspecified_Error
call fcn.00404d50
add esp, 4
mov esi, eax
mov edx, 1
mov dword [ebp - 0x28], edx
test edi, edi
je 0x401342
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401333
sub ecx, edx
lea edx, [ecx + 1]
mov dword [ebp - 0x28], edx
test esi, esi
je 0x40135e
mov ecx, esi
lea ebx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401350
sub ecx, ebx
add edx, ecx
mov dword [ebp - 0x28], edx
push edx
call fcn.00406f81
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4013a1
mov byte [ebx], 0
test edi, edi
je 0x401381
push edi
push dword [ebp - 0x28]
push ebx
call fcn.00406ca0
add esp, 0xc
test esi, esi
je 0x401392
push esi
push dword [ebp - 0x28]
push ebx
call fcn.00406ca0
add esp, 0xc
test edi, edi
je 0x40139f
push edi
call fcn.00406c85
add esp, 4
mov edi, ebx
push 0x10
push str.Error
push edi
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0x64
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00401ee3
mov esp, ebp
pop ebp
ret