Function at 0x4c5390
Capabilities:
Access peb ldr_data
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4d70bf
mov eax, dword fs:[0]
push eax
sub esp, 0xa0
mov eax, dword [0x510918]
xor eax, esp
mov dword [esp + 0x9c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x510918]
xor eax, esp
push eax
lea eax, [esp + 0xb4]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [esp + 0x28], ebx
push dword [esp + 0xc4]
mov dword [esp + 0x38], ebx
call fcn.004c4ff0
lea esi, [ebx + 0xc]
mov ecx, esi
mov dword [esp + 0xbc], 0
mov dword [esp + 0x30], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040b0b0
mov dword [esi], eax
lea esi, [ebx + 0x14]
mov ecx, esi
mov byte [esp + 0xbc], 1
mov dword [esp + 0x2c], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.0040b0b0
mov dword [esi], eax
lea ecx, [ebx + 0x1c]
mov byte [esp + 0xbc], 2
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
call fcn.004c67d0
mov dword [ebx + 0x1c], eax
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
lea eax, [esp + 0x80]
push eax
mov byte [esp + 0xc0], 4
call fcn.004cbf10
add esp, 4
or ebp, 0xffffffff
cmp dword [esp + 0x90], 0
mov byte [esp + 0xbc], 5
je 0x4c55f2
lea edx, [esp + 0x80]
lea ecx, [esp + 0x18]
call fcn.004d62d0
mov edx, eax
mov eax, dword [edx]
mov ecx, dword [edx + 4]
mov dword [edx + 4], 0
mov dword [edx], 0
mov esi, dword [esp + 0x24]
mov byte [esp + 0xbc], 6
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], ecx
test esi, esi
je 0x4c54f0
lea eax, [esi + 4]
mov ecx, ebp
lock xadd dword [eax], ecx
jne 0x4c54f0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
mov edx, ebp
lock xadd dword [eax], edx
jne 0x4c54f0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov esi, dword [esp + 0x1c]
mov byte [esp + 0xbc], 5
test esi, esi
je 0x4c5524
lea eax, [esi + 4]
mov ecx, ebp
lock xadd dword [eax], ecx
jne 0x4c5524
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
mov edx, ebp
lock xadd dword [eax], edx
jne 0x4c5524
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
cmp dword [esp + 0x20], 0
jne 0x4c55fd
push str.Unable_to_open_message_catalog:
lea ecx, [esp + 0x9c]
call fcn.00404a40
lea eax, [esp + 0x80]
push eax
lea eax, [esp + 0x9c]
push eax
lea eax, [esp + 0x70]
push eax
mov byte [esp + 0xc8], 7
call fcn.004c1040
add esp, 0xc
cmp dword [eax + 0x14], 0x10
mov byte [esp + 0xbc], 8
jb 0x4c5575
mov eax, dword [eax]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x3c]
call fcn.004a2a1f
mov dword [esp + 0x38], vtable.std::runtime_error.0
cmp dword [esp + 0x7c], 0x10
mov byte [esp + 0xbc], 0xa
jb 0x4c55aa
push dword [esp + 0x68]
call fcn.004a295f
add esp, 4
lea ecx, [esp + 0x38]
mov dword [esp + 0x7c], 0xf
mov dword [esp + 0x78], 0
mov byte [esp + 0x68], 0
call fcn.004d5940
lea ecx, [esp + 0x38]
call fcn.004a2a93
cmp dword [esp + 0xac], 0x10
mov byte [esp + 0xbc], 5
jb 0x4c55f2
push dword [esp + 0x98]
call fcn.004a295f
add esp, 4
cmp dword [esp + 0x20], 0
je 0x4c5912
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov ecx, ebx
call fcn.004d5a70
mov ebx, eax
mov edi, 7
xor ecx, ecx
xor eax, eax
mov dword [esp + 0x4c], edi
mov dword [esp + 0x48], ecx
mov word [esp + 0x38], ax
mov dl, byte [ebx]
mov byte [esp + 0xbc], 0xb
test dl, dl
je 0x4c56d2
movsx ax, dl
movzx ebp, ax
or eax, 0xffffffff
sub eax, ecx
cmp eax, 1
jbe 0x4c59b8
lea esi, [ecx + 1]
cmp esi, 0x7ffffffe
ja 0x4c59b8
cmp edi, esi
jae 0x4c5669
push ecx
push esi
lea ecx, [esp + 0x40]
call fcn.00402d70
jmp 0x4c5682
test esi, esi
jne 0x4c568c
cmp edi, 8
lea eax, [esp + 0x38]
cmovae eax, dword [esp + 0x38]
xor ecx, ecx
mov dword [esp + 0x48], esi
mov word [eax], cx
mov ecx, dword [esp + 0x48]
mov edi, dword [esp + 0x4c]
test esi, esi
setne al
test al, al
je 0x4c56c3
cmp edi, 8
lea eax, [esp + 0x38]
cmovae eax, dword [esp + 0x38]
mov word [eax + ecx*2], bp
cmp dword [esp + 0x4c], 8
lea eax, [esp + 0x38]
cmovae eax, dword [esp + 0x38]
xor ecx, ecx
mov dword [esp + 0x48], esi
mov word [eax + esi*2], cx
mov edi, dword [esp + 0x4c]
mov ecx, dword [esp + 0x48]
mov dl, byte [ebx + 1]
inc ebx
test dl, dl
jne 0x4c5634
or ebp, 0xffffffff
lea eax, [esp + 0x38]
push eax
mov eax, dword [esp + 0x1c]
add eax, 0xc8
push eax
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x28]
push dword [eax]
lea ecx, [esp + 0x74]
call fcn.004d6220
xor ecx, ecx
mov edi, 0xf
mov dword [esp + 0x64], edi
mov dword [esp + 0x60], ecx
mov byte [esp + 0x50], cl
xor ebx, ebx
mov byte [esp + 0xbc], 0xd
cmp dword [esp + 0x78], ebx
jbe 0x4c57c3
jmp 0x4c5720
cmp dword [esp + 0x7c], 8
lea eax, [esp + 0x68]
cmovae eax, dword [esp + 0x68]
mov dl, byte [eax + ebx*2]
mov eax, ebp
sub eax, ecx
mov byte [esp + 0x17], dl
cmp eax, 1
jbe 0x4c59b8
lea esi, [ecx + 1]
cmp esi, 0xfffffffe
ja 0x4c59b8
cmp edi, esi
jae 0x4c5763
push ecx
push esi
lea ecx, [esp + 0x58]
call fcn.004046d0
mov dl, byte [esp + 0x17]
jmp 0x4c577a
test esi, esi
jne 0x4c5784
lea eax, [esp + 0x50]
cmp edi, 0x10
cmovae eax, dword [esp + 0x50]
mov dword [esp + 0x60], esi
mov byte [eax], 0
mov ecx, dword [esp + 0x60]
mov edi, dword [esp + 0x64]
test esi, esi
setne al
test al, al
je 0x4c57b8
cmp edi, 0x10
lea eax, [esp + 0x50]
cmovae eax, dword [esp + 0x50]
mov byte [eax + ecx], dl
cmp dword [esp + 0x64], 0x10
lea eax, [esp + 0x50]
cmovae eax, dword [esp + 0x50]
mov dword [esp + 0x60], esi
mov byte [esi + eax], 0
mov edi, dword [esp + 0x64]
mov ecx, dword [esp + 0x60]
inc ebx
cmp ebx, dword [esp + 0x78]
jb 0x4c5720
mov ebx, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], ebx
call fcn.004c6120
lea ecx, [esp + 0x50]
cmp eax, ecx
je 0x4c57f1
push 0xffffffffffffffff
push 0
push ecx
mov ecx, eax
call fcn.00404570
mov edi, dword [esp + 0x64]
cmp edi, 0x10
jb 0x4c5802
push dword [esp + 0x50]
call fcn.004a295f
add esp, 4
cmp dword [esp + 0x7c], 8
jb 0x4c5815
push dword [esp + 0x68]
call fcn.004a295f
add esp, 4
xor eax, eax
cmp dword [esp + 0x4c], 8
mov dword [esp + 0x7c], 7
mov dword [esp + 0x78], 0
mov word [esp + 0x68], ax
mov byte [esp + 0xbc], 5
jb 0x4c5847
push dword [esp + 0x38]
call fcn.004a295f
add esp, 4
inc ebx
mov dword [esp + 0x18], ebx
cmp ebx, 0x15
jle 0x4c5603
mov eax, dword [0x515ffc]
test al, 1
jne 0x4c589f
or eax, 1
mov dword [0x515ffc], eax
xor eax, eax
push 0x4e0fb0
mov byte [esp + 0xc0], 0xe
mov dword [0x515ff8], 7
mov dword [0x515ff4], 0
mov word [0x515fe4], ax
call fcn.004a3423
add esp, 4
mov byte [esp + 0xbc], 5
mov ebx, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
xor esi, esi
lea esp, [esp]
push 0x515fe4
lea eax, [esi + 0x12c]
push eax
push dword [ebx]
lea edx, [esp + 0x2c]
lea ecx, [esp + 0x74]
call fcn.004d6220
cmp dword [esp + 0x78], 0
mov byte [esp + 0xbc], 0xf
je 0x4c58f1
lea eax, [esp + 0x68]
push eax
mov ecx, edi
call fcn.004c6280
mov ecx, eax
mov eax, dword [esi*4 + 0x4e9908]
mov dword [ecx], eax
cmp dword [esp + 0x7c], 8
mov byte [esp + 0xbc], 5
jb 0x4c590c
push dword [esp + 0x68]
call fcn.004a295f
add esp, 4
inc esi
cmp esi, 0xd
jbe 0x4c58b0
lea eax, [ebx + 0x28]
push eax
push ebx
call fcn.004c3120
add esp, 8
cmp dword [esp + 0x94], 0x10
mov dword [ebx + 0x24], eax
jb 0x4c593b
push dword [esp + 0x80]
call fcn.004a295f
add esp, 4
mov esi, dword [esp + 0x24]
mov dword [esp + 0x94], 0xf
mov dword [esp + 0x90], 0
mov byte [esp + 0x80], 0
mov byte [esp + 0xbc], 3
test esi, esi
je 0x4c598c
lea eax, [esi + 4]
mov ecx, ebp
lock xadd dword [eax], ecx
jne 0x4c598c
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
lock xadd dword [eax], ebp
dec ebp
jne 0x4c598c
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
mov eax, ebx
mov ecx, dword [esp + 0xb4]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x9c]
xor ecx, esp
call fcn.004a2964
add esp, 0xac
ret 4
push str.string_too_long
call fcn.004a16a5
int3