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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x9c
lea eax, [esp + 0x5c]
mov dword [esp + 0x20], ecx
mov dword [esp], eax
mov dword [esp + 0x74], sym.___gxx_personality_sj0
mov dword [esp + 0x78], 0x4f0b74
mov dword [esp + 0x7c], ebp
mov dword [esp + 0x80], 0x4c7dc4
mov dword [esp + 0x84], esp
call sym.__Unwind_SjLj_Register
mov eax, dword [esp + 0xb4]
test eax, eax
je 0x4c7c08
mov eax, dword [esp + 0xb0]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4c7cc8
mov ebx, dword [esp + 0x20]
mov edx, dword [esp + 0x2c]
mov eax, dword [ebx + 8]
lea esi, [edx - 1]
mov dword [esp + 0x40], esi
mov dword [esp + 0x28], eax
sub eax, 1
cmp eax, esi
jae 0x4c7a6a
lea esi, [edx + 3]
mov edx, dword [ebx + 4]
mov edi, 0xffffffff
mov dword [esp + 0x60], 0xffffffff
cmp esi, 0x20000000
mov dword [esp + 0x30], esi
mov dword [esp + 0x3c], edx
lea edx, [esi*4]
cmovb edi, edx
mov dword [esp], edi
mov dword [esp + 0x48], edi
call sym.operator_new___unsigned_int_
mov edi, dword [esp + 0x28]
mov dword [esp + 0x38], eax
test edi, edi
je 0x4c796f
mov ebx, dword [esp + 0x3c]
mov edi, dword [esp + 0x28]
mov edx, dword [esp + 0x38]
mov eax, ebx
lea ebx, [ebx + edi*4]
lea esi, [esi]
mov ecx, dword [eax]
add eax, 4
add edx, 4
mov dword [edx - 4], ecx
cmp ebx, eax
jne 0x4c7960
mov edx, dword [esp + 0x30]
cmp dword [esp + 0x28], edx
jae 0x4c79a5
mov edi, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], 0
sub eax, edi
lea edx, [eax*4 + 0xc]
mov eax, dword [esp + 0x38]
mov dword [esp + 8], edx
lea eax, [eax + edi*4]
mov dword [esp], eax
call sym._memset
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x60], 1
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call sym.operator_new___unsigned_int_
mov esi, dword [esp + 0x28]
mov dword [esp + 0x34], eax
test esi, esi
je 0x4c79f7
mov esi, dword [esp + 0x44]
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x34]
mov eax, esi
lea ebx, [esi + ebx*4]
lea esi, [esi]
mov ecx, dword [eax]
add eax, 4
add edx, 4
mov dword [edx - 4], ecx
cmp eax, ebx
jne 0x4c79e8
mov edx, dword [esp + 0x30]
cmp dword [esp + 0x28], edx
jae 0x4c7a2d
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], 0
sub eax, ebx
lea edx, [eax*4 + 0xc]
mov eax, dword [esp + 0x34]
mov dword [esp + 8], edx
lea eax, [eax + ebx*4]
mov dword [esp], eax
call sym._memset
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x3c]
mov dword [eax + 8], edx
mov dword [eax + 4], edi
mov dword [eax + 0xc], esi
test ebx, ebx
je 0x4c7a5a
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call sym.operator_delete___void_
mov eax, dword [esp + 0x44]
test eax, eax
je 0x4c7a6a
mov dword [esp], eax
call sym.operator_delete___void_
mov eax, dword [esp + 0xb4]
lock add dword [eax + 4], 1
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x40]
mov eax, dword [eax + 4]
lea eax, [eax + edx*4]
mov ecx, dword [eax]
mov dword [esp + 0x34], eax
test ecx, ecx
je 0x4c7b7b
mov edx, dword [0x565200]
test edx, edx
je 0x4c7b70
mov esi, dword [esp + 0x2c]
mov ebx, 0x565200
jmp 0x4c7ad7
mov edx, dword [ebx + 4]
mov eax, dword [edx]
cmp esi, ecx
je 0x4c7afe
test eax, eax
je 0x4c7c28
cmp esi, eax
je 0x4c7c46
mov edx, dword [ebx + 8]
add ebx, 8
test edx, edx
je 0x4c7cb8
mov ecx, dword [edx]
test ecx, ecx
jne 0x4c7ab0
mov edi, 1
lock xadd dword [0x4f47ac], edi
add edi, 1
mov eax, ecx
lock cmpxchg dword [edx], edi
mov ecx, dword [edx]
mov edx, dword [ebx + 4]
mov eax, dword [edx]
cmp esi, ecx
jne 0x4c7ab9
mov edi, dword [esp + 0x20]
mov ecx, dword [edi + 4]
test eax, eax
je 0x4c7d61
lea eax, [ecx + eax*4 - 4]
mov ecx, dword [eax]
mov dword [esp + 0x4c], eax
test ecx, ecx
je 0x4c7cb8
mov eax, dword [ebx + 4]
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x60], 0xffffffff
mov dword [esp], eax
call method.std::locale::facet._M_sso_shim_std::locale::id_const__const
sub esp, 4
mov dword [esp + 0x58], eax
lock add dword [eax + 4], 1
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax]
lock sub dword [ecx + 4], 1
je 0x4c7d2f
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x58]
mov dword [eax], edx
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
lea esi, [esi]
lea esi, [esi]
lock sub dword [ecx + 4], 1
je 0x4c7d00
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0xb4]
mov dword [eax], edx
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 8]
test eax, eax
je 0x4c7c08
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], 0
mov eax, dword [eax + 0xc]
jmp 0x4c7bcc
mov eax, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
mov eax, dword [eax + 0xc]
mov dword [eax + ebx], 0
mov ebx, dword [esp + 0x20]
add dword [esp + 0x1c], 1
mov edi, dword [esp + 0x1c]
cmp dword [ebx + 8], edi
jbe 0x4c7c08
mov esi, dword [esp + 0x1c]
mov ecx, dword [eax + esi*4]
lea ebx, [esi*4]
mov dword [esp + 0x24], ebx
test ecx, ecx
je 0x4c7bba
lock sub dword [ecx + 4], 1
jne 0x4c7ba8
mov eax, dword [ecx]
mov eax, dword [eax + 4]
cmp eax, sym.std::locale::facet::facet__
jne 0x4c7d20
mov dword [esp], ecx
call sym.operator_delete_void_
jmp 0x4c7ba8
lea eax, [esp + 0x5c]
mov dword [esp], eax
call sym.__Unwind_SjLj_Unregister
add esp, 0x9c
pop ebx
pop esi
pop edi
pop ebp
ret 8
mov ecx, 1
lock xadd dword [0x4f47ac], ecx
add ecx, 1
lock cmpxchg dword [edx], ecx
mov eax, dword [edx]
cmp esi, eax
jne 0x4c7ac9
mov eax, dword [esp + 0x20]
mov edx, dword [ebx]
mov ecx, dword [eax + 4]
mov eax, dword [edx]
test eax, eax
je 0x4c7d7c
lea eax, [ecx + eax*4 - 4]
mov edx, dword [eax]
mov dword [esp + 0x50], eax
test edx, edx
je 0x4c7cb8
mov eax, dword [ebx]
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x60], 0xffffffff
mov dword [esp], eax
call method.std::locale::facet._M_cow_shim_std::locale::id_const__const
sub esp, 4
mov dword [esp + 0x54], eax
lock add dword [eax + 4], 1
mov eax, dword [esp + 0x50]
mov ecx, dword [eax]
lock sub dword [ecx + 4], 1
je 0x4c7d48
mov eax, dword [esp + 0x50]
mov edx, dword [esp + 0x54]
mov dword [eax], edx
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
jmp 0x4c7b70
mov eax, dword [esp + 0x34]
mov ecx, dword [eax]
jmp 0x4c7b70
mov edx, 1
lock xadd dword [0x4f47ac], edx
mov esi, dword [esp + 0xb0]
mov eax, dword [esp + 0x2c]
add edx, 1
lock cmpxchg dword [esi], edx
mov eax, dword [esp + 0xb0]
mov eax, dword [eax]
mov dword [esp + 0x2c], eax
jmp 0x4c78e4
mov eax, dword [ecx]
mov eax, dword [eax + 4]
cmp eax, sym.std::locale::facet::facet__
jne 0x4c7d97
mov dword [esp], ecx
call sym.operator_delete_void_
jmp 0x4c7b7b
mov dword [esp + 0x60], 0xa
call eax
jmp 0x4c7ba8
mov eax, dword [ecx]
mov eax, dword [eax + 4]
cmp eax, sym.std::locale::facet::facet__
jne 0x4c7db5
mov dword [esp], ecx
call sym.operator_delete_void_
jmp 0x4c7b56
mov eax, dword [ecx]
mov eax, dword [eax + 4]
cmp eax, sym.std::locale::facet::facet__
jne 0x4c7da6
mov dword [esp], ecx
call sym.operator_delete_void_
jmp 0x4c7c9d
mov esi, 1
lock xadd dword [0x4f47ac], esi
add esi, 1
lock cmpxchg dword [edx], esi
mov eax, dword [edx]
jmp 0x4c7b0d
mov esi, 1
lock xadd dword [0x4f47ac], esi
add esi, 1
lock cmpxchg dword [edx], esi
mov eax, dword [edx]
jmp 0x4c7c59
mov dword [esp + 0x60], 8
call eax
jmp 0x4c7b7b
mov dword [esp + 0x60], 6
call eax
jmp 0x4c7c9d
mov dword [esp + 0x60], 4
call eax
jmp 0x4c7b56