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

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x134
mov dword [esp], ecx
mov ecx, dword [esp + 0x148]
mov eax, dword [0x567b10]
xor eax, esp
mov dword [esp + 0x130], eax
mov ebx, dword [ecx + 0x40]
test bl, 2
jne 0x4cf797
and ebx, 0xfffffffc
je 0x4cf797
mov eax, ecx
mov esi, dword [ecx + 0x68]
cmp dword [ecx + 0x6c], 0xf
jbe 0x4cf7ab
mov edi, dword [eax + 0x58]
cmp esi, 0xf
jbe 0x4cf7b3
mov eax, esi
or eax, 0xf
cmp eax, 0x7fffffff
mov ecx, 0x7fffffff
cmovb ecx, eax
cmp ecx, 0xfff
mov dword [esp + 0xc], ecx
jb 0x4cf7c3
lea eax, [ecx + 0x24]
push eax
call fcn.00533f15
add esp, 4
lea ecx, [eax + 0x23]
and ecx, 0xffffffe0
mov dword [ecx - 4], eax
jmp 0x4cf7d1
mov dword [esp + 8], 0
mov dword [esp + 0xc], 0xf
xor eax, eax
jmp 0x4cf7e9
lea edi, [eax + 0x58]
cmp esi, 0xf
ja 0x4cf762
mov eax, dword [edi]
mov dword [esp + 8], eax
mov dword [esp + 0xc], 0xf
jmp 0x4cf7e3
lea eax, [ecx + 1]
push eax
call fcn.00533f15
add esp, 4
mov ecx, eax
add esi, 1
push esi
push edi
mov dword [esp + 0x10], ecx
push ecx
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [ebx + 4]
and eax, 0xfffffffc
mov esi, dword [esp]
mov ecx, dword [esi + 0x2c]
lea edx, [esp + 0x50]
push eax
push edx
call fcn.00450720
mov edi, dword [esi + 0x2c]
mov ebx, dword [esp + 0x50]
mov byte [esp + 0x98], 0
lea eax, [ebx + 1]
cmp eax, 2
jae 0x4cf869
xor esi, esi
mov ebx, dword [esp]
mov eax, dword [ebx + 0x18]
mov ecx, dword [eax + 0x1c]
push eax
push esi
push 0x482
call fcn.00458b30
cmp eax, 1
je 0x4cff07
mov eax, 0x120
add eax, dword [ebx + 0x34]
mov dword [esp + 0x20], eax
lea edi, [esp + 0x98]
mov ecx, dword [esp + 0x148]
push edi
call fcn.00527f70
mov eax, dword [esp + 0xb0]
test eax, eax
mov dword [esp + 0x1c], esi
je 0x4cf87b
mov eax, dword [eax + 4]
mov dword [esp + 0x10], eax
jmp 0x4cf883
test ebx, ebx
js 0x4cff60
lea ecx, [edi + 0x6c]
mov eax, ebx
jmp 0x4cff7d
mov dword [esp + 0x10], 0
mov eax, dword [esp + 0xac]
cmp eax, 0x10
jb 0x4cf8c3
mov ecx, dword [esp + 0x98]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x4cf8b9
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x4cffc8
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.00533ac0
add esp, 8
mov eax, dword [ebx + 0x28]
mov esi, dword [eax + 4]
mov dword [esp + 0x48], 0
mov eax, dword [0x568c58]
mov ecx, dword [0x5698e8]
mov edx, dword fs:[0x2c]
mov ecx, dword [edx + ecx*4]
cmp eax, dword [ecx + 0xc]
jg 0x4cffce
mov dword [esp + 0x4c], 0x567398
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [esp + 0x84], ecx
mov dword [esp + 0x80], eax
mov word [esp + 0xa0], 0x105
lea eax, [esp + 0x80]
mov dword [esp + 0x98], eax
lea eax, [esp + 0x48]
lea ecx, [esp + 0x3c]
push eax
push edi
push esi
call fcn.0041b390
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4cfee4
cmp dword [esp + 0x48], 0
jne 0x4cfee4
lea esi, [esp + 0x34]
nop word cs:[eax + eax]
nop
mov eax, dword [eax + 4]
mov eax, dword [eax - 8]
cmp dword [eax + 0x18], 0xf
jbe 0x4cf980
mov ecx, dword [eax + 4]
jmp 0x4cf983
lea ecx, [eax + 4]
push 2
push dword [eax + 0x14]
push ecx
push esi
call fcn.0042cf10
add esp, 0x10
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], ecx
mov word [esp + 0xa0], 0
mov ecx, edi
push 1
push 4
push str..hpp
push 3
push 0x55dc29
push 2
push 0x55dc2d
push 2
push 0x55600e
call fcn.004d0010
cmp byte [eax + 9], 0
je 0x4cfe8b
cmp byte [eax + 8], 0
je 0x4cfe8b
mov eax, dword [esp + 0x40]
mov eax, dword [eax + 4]
mov eax, dword [eax - 8]
cmp dword [eax + 0x18], 0xf
jbe 0x4cfa00
mov edx, dword [eax + 4]
jmp 0x4cfa03
lea edx, [eax + 4]
mov ecx, dword [ebx + 0x28]
push 1
push 0
push dword [eax + 0x14]
push edx
lea eax, [esp + 0x134]
push eax
call fcn.00456b30
test byte [esp + 0x12c], 1
jne 0x4cfe80
mov edx, dword [ebx + 0x2c]
mov eax, dword [esp + 0x124]
mov ecx, dword [edx + 0x54]
test ecx, ecx
je 0x4cfa6a
mov edx, dword [edx + 0x48]
mov edi, eax
shr edi, 4
mov esi, eax
shr esi, 9
xor esi, edi
lea edi, [ecx - 1]
and esi, edi
mov ebp, dword [edx + esi*8]
cmp ebp, eax
jne 0x4cfeae
lea ebx, [edx + esi*8]
lea ecx, [edx + ecx*8]
cmp ebx, ecx
mov ebx, dword [esp]
jne 0x4cfe80
mov ecx, dword [esp + 0x20]
push eax
call fcn.004f84f0
test al, al
jne 0x4cfe80
lea eax, [esp + 0xa4]
mov dword [esp + 0x98], eax
mov dword [esp + 0xa0], 0x80
mov ecx, dword [esp + 0x124]
mov ebx, dword [ebx + 0x28]
mov dword [esp + 0x9c], 0
mov eax, dword [ecx + 0x28]
mov ebp, dword [eax + 4]
test ebp, ebp
je 0x4cfb70
mov dword [esp + 4], ecx
mov edi, dword [eax]
mov dword [esp + 0x18], ebp
mov dword [esp + 0x14], edi
lea esi, [esp + 0x80]
jmp 0x4cfafa
push 2
push ebp
push edi
lea esi, [esp + 0x8c]
push esi
call fcn.0042c270
add esp, 0x10
mov edi, dword [esp + 0x80]
mov ebp, dword [esp + 0x84]
test ebp, ebp
je 0x4cfb7a
mov ecx, ebx
push 1
push ebp
push edi
push esi
call fcn.00456aa0
test byte [esp + 0x88], 1
jne 0x4cfad0
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x80], eax
jne 0x4cfad0
mov edx, dword [esp + 0x18]
cmp edx, ebp
cmovb ebp, edx
sub edx, ebp
mov dword [esp + 0x9c], 0
cmp dword [esp + 0xa0], edx
jae 0x4cfbec
lea edi, [esp + 0x98]
mov ecx, edi
push 1
push edx
lea eax, [esp + 0xac]
push eax
mov esi, edx
call fcn.00424880
mov edx, esi
mov eax, dword [esp + 0x9c]
mov ebx, dword [esp]
mov esi, dword [esp + 4]
jmp 0x4cfc00
mov eax, 0x80
mov ebx, dword [esp]
jmp 0x4cfb88
mov eax, dword [esp + 0xa0]
mov ebx, dword [esp]
mov ecx, dword [esp + 4]
mov edi, dword [ecx + 0x50]
mov esi, dword [edi]
mov dword [esp + 0x9c], 0
cmp eax, esi
jae 0x4cfbbc
lea ecx, [esp + 0x98]
push 1
push esi
lea eax, [esp + 0xac]
push eax
call fcn.00424880
mov eax, dword [esp + 0x9c]
jmp 0x4cfbc2
xor eax, eax
test esi, esi
je 0x4cfbde
add edi, 0x10
add eax, dword [esp + 0x98]
push esi
push edi
push eax
call sub.VCRUNTIME140.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x9c]
add eax, esi
mov dword [esp + 0x9c], eax
jmp 0x4cfc81
xor eax, eax
test edx, edx
mov ebx, dword [esp]
lea edi, [esp + 0x98]
mov esi, dword [esp + 4]
je 0x4cfc23
mov ecx, dword [esp + 0x14]
add ecx, ebp
add eax, dword [esp + 0x98]
push edx
push ecx
push eax
mov ebp, edx
call sub.VCRUNTIME140.dll_memcpy
mov edx, ebp
add esp, 0xc
mov eax, dword [esp + 0x9c]
add eax, edx
mov dword [esp + 0x9c], eax
mov word [esp + 0x2c], 0x101
mov word [esp + 0x7c], 0x101
mov word [esp + 0x70], 0x101
mov eax, dword [esi + 0x50]
push 2
push dword [eax]
add eax, 0x10
push eax
lea esi, [esp + 0x60]
push esi
call fcn.0042cdf0
add esp, 0x10
mov word [esp + 0x64], 0x105
mov dword [esp + 0x5c], esi
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x70]
push eax
lea eax, [esp + 0x68]
push eax
push edi
call fcn.0042c240
add esp, 0x14
mov edi, dword [ebx + 0x18]
mov eax, dword [esp + 0x1c]
mov dword [edi + 0xdc], eax
mov dword [edi + 0xe0], 0x482
lea eax, [edi + 0xc4]
cmp dword [edi + 0xd8], 0x10
jb 0x4cfca9
mov eax, dword [eax]
mov dword [edi + 0xd4], 0
mov byte [eax], 0
lea eax, [edi + 0xe4]
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], edi
mov word [esp + 0x30], 1
mov byte [edi + 0xe4], 0
mov dword [edi + 0x20c], 0
mov eax, dword [edi + 0x278]
test eax, eax
je 0x4cfd55
mov esi, dword [edi + 0x274]
imul ebx, eax, 0x34
jmp 0x4cfd2b
add eax, 0x24
mov ebp, eax
mov ecx, edx
push ebp
push ecx
call fcn.00533ac0
add esp, 8
mov dword [esi + ebx - 0xc], 0
mov dword [esi + ebx - 8], 0xf
mov byte [esi + ebx - 0x1c], 0
add ebx, 0xffffffcc
je 0x4cfd55
mov eax, dword [esi + ebx - 8]
cmp eax, 0x10
jb 0x4cfd11
mov ecx, dword [esi + ebx - 0x1c]
lea ebp, [eax + 1]
cmp ebp, 0x1000
jb 0x4cfd07
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jb 0x4cfd00
jmp 0x4cffc8
mov dword [edi + 0x278], 0
mov ecx, dword [esp + 0x148]
push 0
lea esi, [esp + 0x84]
push esi
call fcn.00527c90
cmp dword [esp + 0x94], 0xf
mov eax, esi
jbe 0x4cfd88
mov eax, dword [esp + 0x80]
lea esi, [esp + 0x24]
mov ecx, esi
push dword [esp + 0x90]
push eax
call fcn.004545a0
mov ecx, esi
push dword [esp + 0x9c]
push dword [esp + 0x9c]
call fcn.004545a0
mov eax, dword [esp + 0x94]
cmp eax, 0x10
jb 0x4cfdf0
mov ecx, dword [esp + 0x80]
lea esi, [eax + 1]
cmp esi, 0x1000
jb 0x4cfde6
mov edx, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, edx
cmp ecx, 0x20
jae 0x4cffc8
add eax, 0x24
mov esi, eax
mov ecx, edx
push esi
push ecx
call fcn.00533ac0
add esp, 8
cmp byte [esp + 0x30], 0
je 0x4cfe15
mov ecx, dword [esp + 0x2c]
movzx eax, byte [esp + 0x31]
push eax
call fcn.0045a620
mov dword [esp + 0x2c], 0
mov word [esp + 0x30], 0
mov ebx, dword [esp + 0x24]
test ebx, ebx
je 0x4cfe5b
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4cfe5b
cmp eax, ebx
ja 0x4cfe4b
lea ecx, [eax + 0x2d40]
cmp ecx, ebx
jb 0x4cfe4b
mov ecx, dword [eax + 0x2d80]
lea edx, [ecx + 1]
mov dword [eax + 0x2d80], edx
mov dword [eax + ecx*4 + 0x2d40], ebx
jmp 0x4cfe5b
mov ecx, ebx
call fcn.00454310
push ebx
call fcn.00533f45
add esp, 4
mov eax, dword [esp + 0x98]
lea ecx, [esp + 0xa4]
cmp eax, ecx
je 0x4cfe77
push eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov ebx, dword [esp]
nop word [eax + eax]
lea edi, [esp + 0x98]
lea esi, [esp + 0x34]
lea ecx, [esp + 0x3c]
lea eax, [esp + 0x48]
push eax
call fcn.0041b4a0
mov eax, dword [esp + 0x40]
test eax, eax
je 0x4cfee4
cmp dword [esp + 0x48], 0
je 0x4cf960
jmp 0x4cfee4
mov dword [esp + 4], 1
cmp ebp, 0xfffff000
mov ebx, dword [esp]
je 0x4cfa6a
mov ebx, dword [esp + 4]
add esi, ebx
add ebx, 1
mov dword [esp + 4], ebx
and esi, edi
lea ebx, [edx + esi*8]
mov ebp, dword [edx + esi*8]
cmp ebp, eax
je 0x4cfa5c
jmp 0x4cfeb6
mov esi, dword [esp + 0x44]
test esi, esi
je 0x4cff07
lock sub dword [esi + 4], 1
jne 0x4cff07
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock sub dword [esi + 8], 1
jne 0x4cff07
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov edx, dword [esp + 0xc]
cmp edx, 0x10
jb 0x4cff45
lea ecx, [edx + 1]
cmp ecx, 0x1000
jb 0x4cff37
mov ecx, dword [esp + 8]
mov eax, dword [ecx - 4]
add ecx, 0xfffffffc
sub ecx, eax
cmp ecx, 0x20
jae 0x4cffc8
add edx, 0x24
mov ecx, edx
jmp 0x4cff3b
mov eax, dword [esp + 8]
push ecx
push eax
call fcn.00533ac0
add esp, 8
mov ecx, dword [esp + 0x130]
xor ecx, esp
call fcn.00533ace
add esp, 0x134
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov eax, 0xfffffffe
sub eax, ebx
mov ecx, eax
shr ecx, 5
mov edx, dword [edi + 0x8c]
mov ecx, dword [edx + ecx*4]
bt ecx, eax
jae 0x4cffa8
lea ecx, [edi + 0x78]
mov ecx, dword [ecx]
test ecx, ecx
je 0x4cf811
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
mov esi, dword [eax]
test esi, esi
js 0x4cf811
mov ecx, edi
push ebx
call fcn.00452eb0
add eax, esi
mov esi, eax
jmp 0x4cf813
lea edx, [esp + 0x98]
mov ecx, edi
push edx
push eax
call fcn.0044fcd0
cmp byte [esp + 0x98], 0
jne 0x4cf811
jmp 0x4cff8d
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push 0x568c58
call fcn.00533bee
add esp, 4
cmp dword [0x568c58], 0xffffffff
jne 0x4cf8f2
push 0x4d28f0
call fcn.00533f00
add esp, 4
push 0x568c58
call fcn.00533ba4
add esp, 4
jmp 0x4cf8f2