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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x611c34
mov eax, dword fs:[0]
push eax
sub esp, 0x148
mov eax, dword [0x711ab8]
xor eax, esp
mov dword [esp + 0x140], eax
push ebx
push esi
push edi
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0x158]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x48], eax
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [esp + 0x24]
xor ebx, ebx
push ecx
mov byte [esp + 0x23], bl
call fcn.004ce660
add esp, 8
mov dword [esp + 0x160], ebx
mov eax, dword [esp + 0x20]
cmp dword [eax], ebx
je 0x4c5faf
cmp dword [eax + 4], ebx
je 0x4c5faf
mov ecx, dword [eax + 4]
mov eax, dword [eax]
push ecx
mov esi, 0xf
push eax
lea ecx, [esp + 0x13c]
mov dword [esp + 0x154], esi
mov dword [esp + 0x150], ebx
mov byte [esp + 0x140], bl
call fcn.0040d1b0
mov byte [esp + 0x160], 1
push 1
lea edx, [esp + 0x138]
push edx
lea eax, [esp + 0x7c]
push eax
lea ecx, [ebx + 1]
call fcn.00450a70
mov byte [esp + 0x160], 2
mov dword [esp + 0x130], esi
mov dword [esp + 0x12c], ebx
mov byte [esp + 0x11c], bl
mov byte [esp + 0x160], 3
mov ecx, dword [esp + 0x74]
mov ecx, dword [ecx + 4]
push 0xa
lea ecx, [esp + ecx + 0x78]
call fcn.0044aac0
movzx edx, al
push edx
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x120]
call fcn.0044c330
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax + 8]
add ecx, eax
and dl, 6
movsx eax, dl
add esp, 8
neg eax
sbb eax, eax
not eax
test ecx, eax
je 0x4c5ef4
cmp dword [esp + 0x130], 0x10
mov ecx, dword [esp + 0x11c]
jae 0x4c585c
lea ecx, [esp + 0x11c]
lea edx, [esp + 0x14]
push edx
call fcn.0040b760
mov byte [esp + 0x160], 4
push 0x6d1d4c
lea eax, [esp + 0x18]
call fcn.0041cd10
mov edi, eax
mov eax, 0x6d1d4c
call fcn.0041cd70
mov eax, dword [esp + 0x14]
push eax
call fcn.005c6254
add esp, 4
lea ecx, [esp + 0x5c]
push ecx
mov esi, eax
call fcn.00443eb0
mov byte [esp + 0x160], 5
push esi
lea ecx, [esp + 0x60]
call fcn.004c6b70
cmp esi, ebx
jbe 0x4c5977
jmp 0x4c58c0
mov edx, dword [esp + 0x74]
mov ecx, dword [edx + 4]
push 0xa
lea ecx, [esp + ecx + 0x78]
call fcn.0044aac0
movzx eax, al
push eax
lea ecx, [esp + 0x78]
push ecx
lea ecx, [esp + 0x120]
call fcn.0044c330
mov edx, dword [eax]
mov ecx, dword [edx + 4]
add ecx, eax
mov eax, dword [ecx + 8]
and al, 6
movsx edx, al
add esp, 8
neg edx
sbb edx, edx
not edx
test ecx, edx
je 0x4c596e
cmp dword [esp + 0x130], 0x10
jb 0x4c591e
mov eax, dword [esp + 0x11c]
mov edi, eax
cmp eax, ebx
jne 0x4c5925
xor eax, eax
jmp 0x4c5939
lea edi, [esp + 0x11c]
mov eax, edi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c5930
sub eax, edx
push edi
mov edi, eax
lea eax, [esp + 0x18]
call fcn.0040f900
push 0x6d1d4c
lea eax, [esp + 0x18]
call fcn.0041cd10
mov edi, eax
mov eax, 0x6d1d4c
call fcn.0041cd70
lea ebx, [esp + 0x14]
lea edi, [esp + 0x5c]
call fcn.004441a0
xor ebx, ebx
sub esi, 1
jne 0x4c58c0
lea eax, [esp + 0x100]
push eax
call fcn.004cd870
mov byte [esp + 0x160], 6
mov ecx, dword [esp + 0x74]
mov ecx, dword [ecx + 4]
push 0xa
lea ecx, [esp + ecx + 0x78]
call fcn.0044aac0
movzx edx, al
push edx
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x120]
call fcn.0044c330
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax + 8]
add ecx, eax
and dl, 6
movsx eax, dl
add esp, 8
neg eax
sbb eax, eax
not eax
test ecx, eax
je 0x4c5eb2
cmp dword [esp + 0x130], 0x10
jb 0x4c59ee
mov edx, dword [esp + 0x11c]
test edx, edx
jne 0x4c59f5
xor eax, eax
jmp 0x4c5a09
lea edx, [esp + 0x11c]
mov eax, edx
lea esi, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c5a00
sub eax, esi
mov edi, eax
push edx
lea eax, [esp + 0x18]
call fcn.0040f900
push 0x6d1d4c
lea eax, [esp + 0x18]
call fcn.0041cd10
mov edi, eax
mov eax, 0x6d1d4c
call fcn.0041cd70
mov eax, dword [esp + 0x14]
cmp dword [eax - 0xc], 0
jl 0x4c5e67
push 0x6d9bdc
push eax
call fcn.005c4e54
add esp, 8
test eax, eax
je 0x4c5e67
sub eax, dword [esp + 0x14]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4c5e67
lea ecx, [esp + 0x30]
push ecx
mov ecx, ebx
lea edx, [esp + 0x18]
call fcn.0045a220
mov byte [esp + 0x160], 7
lea edx, [esp + 0x30]
push edx
lea eax, [esp + 0x28]
push eax
call fcn.004c1e00
add esp, 8
mov byte [esp + 0x160], 8
mov ecx, dword [esp + 0x24]
mov edx, dword [ecx]
movzx eax, word [edx]
movzx esi, al
shr eax, 8
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x6c]
sub eax, dword [esp + 0x68]
sar eax, 2
cmp esi, eax
jb 0x4c5abb
call fcn.005c475a
mov ecx, dword [esp + 0x68]
mov edi, dword [ecx + esi*4]
mov ecx, dword [edi - 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x10]
sub edi, 0x10
call eax
cmp dword [edi + 0xc], 0
lea ecx, [edi + 0xc]
jl 0x4c5ae9
cmp eax, dword [edi]
jne 0x4c5ae9
mov esi, edi
mov edx, 1
lock xadd dword [ecx], edx
jmp 0x4c5b1d
mov ecx, dword [edi + 4]
mov edx, dword [eax]
mov edx, dword [edx]
push 1
push ecx
mov ecx, eax
call edx
mov esi, eax
test esi, esi
je 0x4c6029
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov eax, dword [edi + 4]
inc eax
push eax
add edi, 0x10
push edi
push eax
lea ecx, [esi + 0x10]
push ecx
call fcn.005c4800
add esp, 0x10
add esi, 0x10
mov dword [esp + 0x2c], esi
mov byte [esp + 0x160], 0xa
mov edx, dword [0x728f58]
mov eax, dword [edx + 0xc]
mov ecx, 0x728f58
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
mov byte [esp + 0x160], 0xc
mov ecx, dword [esp + 0x54]
test ecx, ecx
jne 0x4c5bcc
lea ecx, [esp + 0x40]
push ecx
lea eax, [esp + 0x18]
lea edx, [ebx + 1]
push eax
call fcn.00451980
mov byte [esp + 0x160], 0xd
mov ecx, dword [eax]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x4c5bbb
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4c5bae
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x4c5bae
call fcn.0040f990
mov ebx, eax
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x4c5ba5
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebx, 0x10
mov dword [esp + 0x1c], ebx
jmp 0x4c5bbb
mov edi, dword [ecx - 0xc]
push ecx
lea eax, [esp + 0x20]
call fcn.0040f900
mov byte [esp + 0x160], 0xc
mov eax, dword [esp + 0x40]
jmp 0x4c5cb0
lea edx, [esp + 0x28]
push edx
lea edx, [esp + 0x104]
call fcn.004cdd80
mov byte [esp + 0x160], 0xf
mov eax, dword [esp + 0x28]
cmp dword [eax - 0xc], 0
je 0x4c5ca4
lea ecx, [esp + 0x50]
push ecx
lea eax, [esp + 0x18]
lea edx, [ebx + 1]
push eax
call fcn.00451980
mov edi, eax
mov byte [esp + 0x160], 0x10
mov ecx, dword [esp + 0x28]
push ecx
lea edx, [esp + 0x50]
push edx
call fcn.004c1430
mov byte [esp + 0x168], 0x11
lea ecx, [esp + 0x4c]
push 0x6d9bdc
push ecx
mov ecx, eax
call fcn.00424670
mov byte [esp + 0x170], 0x12
lea edx, [esp + 0x48]
push edi
push edx
mov ecx, eax
call fcn.004245c0
add esp, 0x18
mov byte [esp + 0x160], 0x13
lea ebx, [esp + 0x1c]
call fcn.0040dcb0
mov byte [esp + 0x160], 0x12
lea ecx, [esp + 0x38]
call fcn.0040b810
mov byte [esp + 0x160], 0x11
lea ecx, [esp + 0x44]
call fcn.0040b810
mov byte [esp + 0x160], 0x10
lea ecx, [esp + 0x4c]
call fcn.0040b810
mov byte [esp + 0x160], 0xf
lea ecx, [esp + 0x50]
call fcn.0040b810
mov byte [esp + 0x160], 0xc
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c5ccc
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x1c]
cmp dword [ecx - 0xc], 0
je 0x4c5dae
mov ecx, dword [esp + 0x48]
mov eax, dword [ecx + 0x14]
mov esi, dword [eax]
mov eax, dword [ecx]
mov edi, eax
mov dword [esp + 0x58], esi
test eax, eax
jne 0x4c601b
call fcn.005c475a
xor eax, eax
cmp esi, dword [eax + 0x14]
jne 0x4c5d04
call fcn.005c475a
mov esi, dword [esi]
test edi, edi
jne 0x4c6022
call fcn.005c475a
cmp esi, dword [edi + 0x14]
jne 0x4c5d1d
call fcn.005c475a
mov edx, dword [esp + 0x1c]
mov edi, dword [esi + 8]
push edx
lea eax, [esp + 0x38]
push eax
call fcn.004c1530
mov esi, eax
mov bl, 0x15
mov byte [esp + 0x168], bl
mov ecx, dword [esp + 0x34]
push ecx
lea edx, [esp + 0x48]
push edx
call fcn.004c1530
add esp, 0x10
mov byte [esp + 0x160], 0x16
mov edx, dword [edi]
push esi
push eax
mov eax, dword [edx + 4]
mov ecx, edi
call eax
mov byte [esp + 0x160], bl
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c5d86
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x160], 0xc
mov eax, dword [esp + 0x34]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c5dae
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x160], 0xa
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c5dd6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x160], 8
mov eax, dword [esp + 0x2c]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4c5dfe
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [esp + 0x160], 7
mov eax, dword [esp + 0x24]
dec dword [eax + 8]
mov esi, eax
add eax, 8
xor edi, edi
cmp dword [eax], edi
jne 0x4c5e3f
cmp dword [esi + 4], edi
je 0x4c5e2e
mov eax, dword [esi]
push edi
push eax
call fcn.005c6a69
add esp, 8
mov dword [esi], eax
mov dword [esi + 4], edi
mov ecx, dword [esp + 0x24]
push ecx
call fcn.005c396f
add esp, 4
mov dword [esp + 0x24], edi
mov byte [esp + 0x160], 6
mov eax, dword [esp + 0x30]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4c5e67
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x74]
mov ecx, dword [ecx + 4]
push 0xa
lea ecx, [esp + ecx + 0x78]
call fcn.0044aac0
movzx edx, al
push edx
lea eax, [esp + 0x78]
push eax
lea ecx, [esp + 0x120]
call fcn.0044c330
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax + 8]
add ecx, eax
and dl, 6
movsx eax, dl
add esp, 8
neg eax
sbb eax, eax
not eax
test ecx, eax
jne 0x4c59d5
xor ebx, ebx
mov byte [esp + 0x1b], 1
mov byte [esp + 0x160], 5
lea ecx, [esp + 0x100]
push ecx
call fcn.004cde80
mov byte [esp + 0x160], 4
lea edx, [esp + 0x5c]
push edx
call fcn.0041cb00
mov byte [esp + 0x160], 3
lea ecx, [esp + 0x14]
call fcn.0040b810
mov esi, 0xf
mov byte [esp + 0x160], 2
mov edi, 0x10
cmp dword [esp + 0x130], edi
jb 0x4c5f1a
mov eax, dword [esp + 0x11c]
push eax
call fcn.005c396f
add esp, 4
mov dword [esp + 0x130], esi
mov dword [esp + 0x12c], ebx
mov byte [esp + 0x11c], 0
mov byte [esp + 0x160], 1
lea ecx, [esp + 0xc4]
call fcn.00450b60
lea ecx, [esp + 0xc4]
mov dword [esp + 0x34], ecx
mov dword [esp + 0xc4], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov byte [esp + 0x160], 1
mov edx, ecx
push edx
mov dword [esp + 0xc8], vtable.std::ios_base.0
call fcn.005c27ca
add esp, 4
mov byte [esp + 0x160], 0
cmp dword [esp + 0x14c], edi
jb 0x4c5f99
mov eax, dword [esp + 0x138]
push eax
call fcn.005c396f
add esp, 4
mov dword [esp + 0x14c], esi
mov dword [esp + 0x148], ebx
mov byte [esp + 0x138], 0
mov dword [esp + 0x160], 0xffffffff
mov eax, dword [esp + 0x20]
dec dword [eax + 8]
mov esi, eax
add eax, 8
cmp dword [eax], ebx
jne 0x4c5ff1
cmp dword [esi + 4], ebx
je 0x4c5fe0
mov eax, dword [esi]
push ebx
push eax
call fcn.005c6a69
add esp, 8
mov dword [esi], eax
mov dword [esi + 4], ebx
mov ecx, dword [esp + 0x20]
push ecx
call fcn.005c396f
add esp, 4
mov dword [esp + 0x20], ebx
mov al, byte [esp + 0x1b]
mov ecx, dword [esp + 0x158]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x140]
xor ecx, esp
call fcn.005c397a
mov esp, ebp
pop ebp
ret 8
mov eax, dword [eax]
jmp 0x4c5cfa
mov edi, dword [edi]
jmp 0x4c5d13
call fcn.0040fb60
int3