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

Disassembly:
push 0xffffffffffffffff
push 0x400735d2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9c
push ebx
push ebp
push esi
push edi
push dword [esp + 0xbc]
mov ebp, ecx
mov dword [esp + 0x70], ebp
call fcn.4003f7c0
lea ebx, [ebp + 0xc]
mov dword [esp + 0xb4], 0
mov dword [esp + 0x68], ebx
mov dword [ebx], 0
mov dword [ebx + 4], 0
call fcn.4003e2f0
mov dword [ebx], eax
lea ebx, [ebp + 0x14]
mov byte [esp + 0xb4], 1
mov dword [esp + 0x74], ebx
mov dword [ebx], 0
mov dword [ebx + 4], 0
call fcn.4003e2f0
mov dword [ebx], eax
mov byte [esp + 0xb4], 2
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 0
call fcn.4003e320
mov dword [ebp + 0x1c], eax
xor esi, esi
mov dword [esp + 0x40], 0
mov dword [esp + 0x44], esi
lea ecx, [esp + 0x90]
mov byte [esp + 0xb4], 4
call fcn.4003e880
mov byte [esp + 0xb4], 5
or ebx, 0xffffffff
cmp dword [esp + 0xa0], esi
je 0x4003cd53
lea edx, [esp + 0x90]
lea ecx, [esp + 0x48]
call fcn.40042870
mov ecx, dword [eax + 4]
mov edi, dword [eax]
mov dword [eax + 4], esi
mov dword [eax], esi
mov byte [esp + 0xb4], 5
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x70], ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], ecx
test esi, esi
je 0x4003c98c
lea eax, [esi + 4]
mov ecx, ebx
lock xadd dword [eax], ecx
jne 0x4003c98c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
mov edx, ebx
lock xadd dword [eax], edx
jne 0x4003c98c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
test edi, edi
jne 0x4003ca4a
push str.Unable_to_open_message_catalog:
mov dword [esp + 0x90], 0xf
mov dword [esp + 0x8c], edi
mov byte [esp + 0x7c], 0
call fcn.40054030
add esp, 4
lea ecx, [esp + 0x78]
push eax
push str.Unable_to_open_message_catalog:
call fcn.40002a62
lea eax, [esp + 0x90]
mov byte [esp + 0xb4], 7
push eax
lea edx, [esp + 0x7c]
lea ecx, [esp + 0x54]
call fcn.4003fad0
add esp, 4
mov byte [esp + 0xb4], 8
cmp dword [eax + 0x14], 0x10
jb 0x4003c9f7
mov eax, dword [eax]
mov dword [esp + 0x48], eax
lea ecx, [esp + 0x28]
lea eax, [esp + 0x48]
push eax
call fcn.400537e1
mov dword [esp + 0x28], vtable.std::runtime_error.0
mov byte [esp + 0xb4], 0xa
cmp dword [esp + 0x64], 0x10
jb 0x4003ca2c
push dword [esp + 0x50]
call fcn.40053016
add esp, 4
lea ecx, [esp + 0x28]
mov dword [esp + 0x64], 0xf
mov dword [esp + 0x60], 0
mov byte [esp + 0x50], 0
call fcn.4000e8cb
xor ebp, ebp
cmp ebp, 0x15
mov edi, dword [str.Unknown_error.]
jg 0x4003ca5e
mov edi, dword [ebp*4 + 0x400850a0]
mov edx, 7
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x38], ecx
mov word [esp + 0x28], ax
mov byte [esp + 0xb4], 0xb
mov al, byte [edi]
test al, al
je 0x4003cb1f
cbw
movzx ebx, ax
or eax, 0xffffffff
sub eax, ecx
cmp eax, 1
jbe 0x4003cde3
lea esi, [ecx + 1]
cmp esi, 0x7ffffffe
ja 0x4003cde3
cmp edx, esi
jae 0x4003cab9
push ecx
push esi
lea ecx, [esp + 0x30]
call fcn.4000795f
jmp 0x4003cad2
test esi, esi
jne 0x4003cadc
cmp edx, 8
mov dword [esp + 0x38], esi
lea eax, [esp + 0x28]
cmovae eax, dword [esp + 0x28]
xor ecx, ecx
mov word [eax], cx
mov ecx, dword [esp + 0x38]
test esi, esi
mov edx, dword [esp + 0x3c]
setne al
test al, al
je 0x4003cb13
cmp edx, 8
lea eax, [esp + 0x28]
cmovae eax, dword [esp + 0x28]
mov word [eax + ecx*2], bx
lea eax, [esp + 0x28]
cmp dword [esp + 0x3c], 8
mov dword [esp + 0x38], esi
cmovae eax, dword [esp + 0x28]
xor ecx, ecx
mov word [eax + esi*2], cx
mov edx, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4003ca86
lea eax, [esp + 0x28]
push eax
lea eax, [ebp + 0xc8]
push eax
push ecx
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x5c]
call fcn.400428b0
xor ecx, ecx
mov edx, 0xf
mov dword [esp + 0x24], edx
mov dword [esp + 0x20], ecx
mov byte [esp + 0x10], cl
xor edi, edi
mov byte [esp + 0xb4], 0xd
cmp dword [esp + 0x60], edi
jbe 0x4003cbfc
cmp dword [esp + 0x64], 8
lea eax, [esp + 0x50]
cmovae eax, dword [esp + 0x50]
mov bl, byte [eax + edi*2]
or eax, 0xffffffff
sub eax, ecx
cmp eax, 1
jbe 0x4003cde3
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x4003cde3
cmp edx, esi
jae 0x4003cb9c
push ecx
push esi
lea ecx, [esp + 0x18]
call fcn.40003021
jmp 0x4003cbb3
test esi, esi
jne 0x4003cbbd
cmp edx, 0x10
mov dword [esp + 0x20], esi
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
mov byte [eax], 0
mov ecx, dword [esp + 0x20]
test esi, esi
mov edx, dword [esp + 0x24]
setne al
test al, al
je 0x4003cbf1
cmp edx, 0x10
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
mov byte [eax + ecx], bl
lea eax, [esp + 0x10]
cmp dword [esp + 0x24], 0x10
mov dword [esp + 0x20], esi
cmovae eax, dword [esp + 0x10]
mov byte [eax + esi], 0
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
inc edi
cmp edi, dword [esp + 0x60]
jb 0x4003cb60
mov ecx, dword [esp + 0x68]
lea eax, [esp + 0x48]
push eax
mov dword [esp + 0x4c], ebp
call fcn.4003d1e0
lea ecx, [esp + 0x10]
cmp eax, ecx
je 0x4003cc22
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.400029ce
cmp dword [esp + 0x24], 0x10
jb 0x4003cc35
push dword [esp + 0x10]
call fcn.40053016
add esp, 4
cmp dword [esp + 0x64], 8
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], 0
mov byte [esp + 0x10], 0
jb 0x4003cc5d
push dword [esp + 0x50]
call fcn.40053016
add esp, 4
xor eax, eax
mov byte [esp + 0xb4], 5
cmp dword [esp + 0x3c], 8
mov dword [esp + 0x64], 7
mov dword [esp + 0x60], 0
mov word [esp + 0x50], ax
jb 0x4003cc8f
push dword [esp + 0x28]
call fcn.40053016
add esp, 4
inc ebp
cmp ebp, 0x15
jle 0x4003ca4f
mov eax, dword [0x40097b24]
test al, 1
jne 0x4003ccd3
or eax, 1
mov dword [0x40097b20], 7
mov dword [0x40097b24], eax
xor eax, eax
push 0x40074a70
mov dword [0x40097b1c], 0
mov word [0x40097b0c], ax
call fcn.400542cc
add esp, 4
mov edi, dword [esp + 0x74]
xor esi, esi
lea esp, [esp]
push 0x40097b0c
lea eax, [esi + 0x12c]
push eax
push ecx
lea edx, [esp + 0x4c]
lea ecx, [esp + 0x84]
call fcn.400428b0
mov byte [esp + 0xb4], 0xe
cmp dword [esp + 0x88], 0
je 0x4003cd24
lea eax, [esp + 0x78]
mov ecx, edi
push eax
call fcn.4003d310
mov ecx, dword [esi*4 + 0x40083a20]
mov dword [eax], ecx
mov byte [esp + 0xb4], 5
cmp dword [esp + 0x8c], 8
jb 0x4003cd42
push dword [esp + 0x78]
call fcn.40053016
add esp, 4
inc esi
cmp esi, 0xd
jbe 0x4003cce0
mov esi, dword [esp + 0x70]
or ebx, 0xffffffff
mov ebp, dword [esp + 0x6c]
lea edx, [ebp + 0x28]
mov ecx, ebp
call fcn.4003fb60
cmp dword [esp + 0xa4], 0x10
mov dword [ebp + 0x24], eax
jb 0x4003cd79
push dword [esp + 0x90]
call fcn.40053016
add esp, 4
mov dword [esp + 0xa4], 0xf
mov dword [esp + 0xa0], 0
mov byte [esp + 0x90], 0
mov byte [esp + 0xb4], 3
test esi, esi
je 0x4003cdc6
lea eax, [esi + 4]
mov ecx, ebx
lock xadd dword [eax], ecx
jne 0x4003cdc6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
lock xadd dword [eax], ebx
dec ebx
jne 0x4003cdc6
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov ecx, dword [esp + 0xac]
mov eax, ebp
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0xa8
ret 4
push str.string_too_long
call fcn.4005237f
int3