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

Disassembly:
push 0xffffffffffffffff
push 0x4d6fee
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x510918]
xor eax, esp
mov dword [esp + 0x78], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x510918]
xor eax, esp
push eax
lea eax, [esp + 0x90]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x14], ebp
mov eax, dword [esp + 0xa0]
lea edi, [ebp + 4]
mov dword [ebp], eax
mov ecx, edi
mov dword [esp + 0x28], ebp
mov dword [edi], 0
mov dword [edi + 4], 0
call fcn.00404030
mov dword [edi], eax
mov dword [esp + 0x98], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
lea eax, [esp + 0x5c]
push eax
mov byte [esp + 0x9c], 1
call fcn.004cbf10
add esp, 4
or ebx, 0xffffffff
cmp dword [esp + 0x6c], 0
mov byte [esp + 0x98], 2
je 0x4c51eb
lea edx, [esp + 0x5c]
lea ecx, [esp + 0x20]
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 + 0x1c]
mov byte [esp + 0x98], 3
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], ecx
test esi, esi
je 0x4c50f5
lea eax, [esi + 4]
mov ecx, ebx
lock xadd dword [eax], ecx
jne 0x4c50f5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
mov edx, ebx
lock xadd dword [eax], edx
jne 0x4c50f5
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov esi, dword [esp + 0x24]
mov byte [esp + 0x98], 2
test esi, esi
je 0x4c5129
lea eax, [esi + 4]
mov ecx, ebx
lock xadd dword [eax], ecx
jne 0x4c5129
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
mov edx, ebx
lock xadd dword [eax], edx
jne 0x4c5129
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
cmp dword [esp + 0x18], 0
jne 0x4c51f6
push str.Unable_to_open_message_catalog:
lea ecx, [esp + 0x78]
call fcn.00404a40
lea eax, [esp + 0x5c]
push eax
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x4c]
push eax
mov byte [esp + 0xa4], 4
call fcn.004c1040
add esp, 0xc
cmp dword [eax + 0x14], 0x10
mov byte [esp + 0x98], 5
jb 0x4c5171
mov eax, dword [eax]
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x30]
call fcn.004a2a1f
mov dword [esp + 0x2c], vtable.std::runtime_error.0
cmp dword [esp + 0x58], 0x10
mov byte [esp + 0x98], 7
jb 0x4c51a6
push dword [esp + 0x44]
call fcn.004a295f
add esp, 4
lea ecx, [esp + 0x2c]
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
call fcn.004d5940
lea ecx, [esp + 0x2c]
call fcn.004a2a93
cmp dword [esp + 0x88], 0x10
mov byte [esp + 0x98], 2
jb 0x4c51eb
push dword [esp + 0x74]
call fcn.004a295f
add esp, 4
cmp dword [esp + 0x18], 0
je 0x4c52c3
mov bl, 1
mov byte [esp + 0x20], bl
mov ebp, 1
push dword [esp + 0x20]
mov esi, dword [esp + 0x18]
lea eax, [esp + 0x48]
push eax
mov ecx, esi
call fcn.004cbff0
push eax
push ebp
push dword [esi]
lea edx, [esp + 0x24]
lea ecx, [esp + 0x38]
mov byte [esp + 0xa4], 8
call fcn.004d6220
cmp dword [esp + 0x58], 8
mov byte [esp + 0x98], 0xa
jb 0x4c5249
push dword [esp + 0x44]
call fcn.004a295f
add esp, 4
xor eax, eax
xor esi, esi
mov dword [esp + 0x58], 7
mov dword [esp + 0x54], 0
mov word [esp + 0x44], ax
cmp dword [esp + 0x3c], eax
jbe 0x4c5292
jmp 0x4c5270
cmp dword [esp + 0x40], 8
lea eax, [esp + 0x2c]
cmovae eax, dword [esp + 0x2c]
mov ecx, edi
lea eax, [eax + esi*2]
push eax
call fcn.004c6370
inc esi
mov byte [eax], bl
cmp esi, dword [esp + 0x3c]
jb 0x4c5270
cmp dword [esp + 0x40], 8
mov byte [esp + 0x98], 2
jb 0x4c52ad
push dword [esp + 0x2c]
call fcn.004a295f
add esp, 4
inc bl
inc ebp
mov byte [esp + 0x20], bl
cmp bl, 0x3c
jb 0x4c5201
mov ebp, dword [esp + 0x14]
jmp 0x4c52fb
mov bl, 1
mov cl, bl
call fcn.004d5a90
mov esi, eax
test esi, esi
je 0x4c52f4
mov cl, byte [esi]
test cl, cl
je 0x4c52f4
movsx ax, cl
movzx eax, ax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
mov ecx, edi
call fcn.004c6370
mov byte [eax], bl
inc esi
jne 0x4c52d2
inc bl
cmp bl, 0x3c
jb 0x4c52c5
cmp dword [esp + 0x70], 0x10
jb 0x4c530e
push dword [esp + 0x5c]
call fcn.004a295f
add esp, 4
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x70], 0xf
mov dword [esp + 0x6c], 0
mov byte [esp + 0x5c], 0
mov byte [esp + 0x98], 0
test esi, esi
je 0x4c5359
or edi, 0xffffffff
lea eax, [esi + 4]
mov ecx, edi
lock xadd dword [eax], ecx
jne 0x4c5359
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea edx, [esi + 8]
lock xadd dword [edx], edi
dec edi
jne 0x4c5359
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 8]
mov eax, ebp
mov ecx, dword [esp + 0x90]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.004a2964
add esp, 0x88
ret 4