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

Disassembly:
sub esp, 0x90
mov eax, dword [0x58f140]
xor eax, esp
mov dword [esp + 0x8c], eax
mov eax, dword [esp + 0x94]
push ebx
mov ebx, dword [esp + 0xa0]
push ebp
mov dword [esp + 0x20], eax
xor ebp, ebp
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 8], ebp
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], eax
push esi
push edi
test ebp, ebp
je 0x4cfa81
cmp byte [ebp], al
je 0x4cfa81
xor edi, edi
jmp 0x4cfa8a
mov edi, 1
test ebp, ebp
je 0x4cfabe
mov ecx, str.:memory:
mov eax, ebp
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4cfab1
test dl, dl
je 0x4cfaad
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4cfab1
add eax, 2
add ecx, 2
test dl, dl
jne 0x4cfa91
xor eax, eax
jmp 0x4cfab6
sbb eax, eax
or eax, 1
test eax, eax
je 0x4cfada
test edi, edi
je 0x4cfac4
cmp byte [ebx + 0x56], 2
je 0x4cfada
mov eax, dword [esp + 0xb8]
test al, al
js 0x4cfae1
mov ecx, dword [esp + 0xb4]
xor esi, esi
jmp 0x4cfaf0
mov eax, dword [esp + 0xb8]
mov ecx, dword [esp + 0xb4]
mov esi, 1
or ecx, 2
mov dword [esp + 0x1c], ecx
test eax, 0x100
je 0x4cfb14
test esi, esi
jne 0x4cfb03
test edi, edi
je 0x4cfb14
and eax, 0xfffffeff
or eax, 0x200
mov dword [esp + 0xb8], eax
push 0
push 0x30
call fcn.004e8780
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4cfbd9
push 0x30
push 0
push ebx
call fcn.005326d0
mov eax, dword [esp + 0x30]
add esp, 0xc
mov byte [ebx + 8], 0
mov dword [ebx], eax
mov dword [ebx + 0x20], ebx
mov dword [ebx + 0x24], 1
mov dword [esp + 0x14], esi
test edi, edi
jne 0x4cfe00
mov eax, dword [esp + 0xb8]
test esi, esi
je 0x4cfb6e
mov dword [esp + 0x14], esi
test al, 0x40
je 0x4cfe00
mov dword [esp + 0x14], esi
test eax, 0x20000
je 0x4cfe00
test ebp, ebp
jne 0x4cfb85
xor ecx, ecx
jmp 0x4cfb9f
mov ecx, ebp
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4cfb90
sub ecx, edx
and ecx, 0x3fffffff
mov eax, dword [esp + 0x28]
lea edi, [ecx + 1]
mov eax, dword [eax + 8]
lea ebp, [eax + 1]
cmp ebp, edi
cmovg ecx, eax
mov eax, ecx
cdq
add eax, 1
adc edx, 0
push edx
push eax
call fcn.004e8780
add esp, 8
mov dword [esp + 0x14], eax
mov byte [ebx + 9], 1
test eax, eax
jne 0x4cfbf7
push ebx
call fcn.004941f0
add esp, 4
mov eax, 7
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0052df19
add esp, 0x90
ret
test esi, esi
je 0x4cfc10
mov eax, dword [esp + 0x20]
mov ebp, dword [esp + 0x14]
push edi
push eax
push ebp
call fcn.00532150
add esp, 0xc
jmp 0x4cfc43
push eax
mov byte [eax], 0
mov eax, dword [esp + 0x24]
push ebp
push eax
mov eax, dword [esp + 0x34]
push eax
mov eax, dword [eax + 0x24]
call eax
mov ebp, eax
add esp, 0x10
mov dword [esp + 0x10], ebp
test ebp, ebp
je 0x4cfc3f
cmp ebp, 0x200
jne 0x4cfc58
xor ebp, ebp
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x14]
cmp byte [0x58d42c], 0
jne 0x4cfc71
xor eax, eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x2c], eax
jmp 0x4cfcbe
push dword [esp + 0x14]
call fcn.004941f0
push ebx
call fcn.004941f0
add esp, 8
mov eax, ebp
jmp 0x4cfbde
push 4
call dword [0x58d470]
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
je 0x4cfc8e
push eax
call dword [0x58d478]
add esp, 4
cmp byte [0x58d42c], 0
jne 0x4cfca1
mov dword [esp + 0x2c], 0
jmp 0x4cfcbe
push 2
call dword [0x58d470]
add esp, 4
mov dword [esp + 0x2c], eax
test eax, eax
je 0x4cfcbe
push eax
call dword [0x58d478]
add esp, 4
mov edi, dword [0x590c1c]
mov dword [esp + 0x14], esi
test edi, edi
je 0x4cfd4c
mov dword [esp + 0x14], esi
mov esi, dword [edi]
mov eax, ebp
mov ecx, dword [esi + 0xb8]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4cfd00
test dl, dl
je 0x4cfcfc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4cfd00
add eax, 2
add ecx, 2
test dl, dl
jne 0x4cfce0
xor eax, eax
jmp 0x4cfd05
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4cfd11
mov eax, dword [esp + 0x28]
cmp dword [esi], eax
je 0x4cfd1a
mov edi, dword [edi + 0x48]
test edi, edi
jne 0x4cfcd4
jmp 0x4cfd4c
mov eax, dword [esp + 0x24]
mov edx, dword [eax + 0x14]
sub edx, 1
js 0x4cfd46
mov eax, dword [eax + 0x10]
mov ecx, edx
shl ecx, 4
add eax, 4
add eax, ecx
mov ecx, dword [eax]
test ecx, ecx
je 0x4cfd3e
cmp dword [ecx + 4], edi
je 0x4cfdad
sub eax, 0x10
sub edx, 1
jns 0x4cfd33
mov dword [ebx + 4], edi
inc dword [edi + 0x44]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4cfd5e
push eax
call dword [0x58d480]
add esp, 4
cmp dword [0x58d428], 0
je 0x4cfdea
mov eax, dword [0x590a50]
test eax, eax
je 0x4cfd7e
push eax
call dword [0x58d478]
add esp, 4
push ebp
call dword [0x58d454]
sub dword [0x5909e8], eax
dec dword [0x590a0c]
push ebp
call dword [0x58d44c]
mov eax, dword [0x590a50]
add esp, 8
test eax, eax
je 0x4cfdf4
push eax
call dword [0x58d480]
jmp 0x4cfdf1
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x4cfdbf
push eax
call dword [0x58d480]
add esp, 4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4cfdd1
push eax
call dword [0x58d480]
add esp, 4
push ebp
call fcn.004941f0
push ebx
call fcn.004941f0
add esp, 8
mov eax, 0x13
jmp 0x4cfbde
push ebp
call dword [0x58d44c]
add esp, 4
test edi, edi
jne 0x4d002f
mov ebp, dword [esp + 0x20]
xorps xmm0, xmm0
push 0
push 0x5c
movq qword [esp + 0x50], xmm0
call fcn.004e8780
mov edi, eax
add esp, 8
test edi, edi
je 0x4d023c
push 0x5c
push 0
push edi
call fcn.005326d0
push 0x4bbf00
push dword [esp + 0xc8]
push dword [esp + 0x30]
push 0x54
push ebp
push edi
push dword [esp + 0x4c]
call fcn.004ea130
mov ebp, eax
add esp, 0x28
mov esi, edi
test ebp, ebp
jne 0x4d01d1
mov edx, dword [edi]
mov ecx, dword [esp + 0x24]
push edx
mov eax, dword [ecx + 0x30]
mov ecx, dword [ecx + 0x34]
mov dword [edx + 0x88], eax
mov dword [edx + 0x8c], ecx
call fcn.004bc0a0
mov esi, dword [edi]
lea eax, [esp + 0x3c]
push 0x64
push ebp
push eax
mov dword [esp + 0x20], ebp
call fcn.005326d0
mov eax, dword [esi + 0x40]
add esp, 0x10
mov ecx, dword [eax]
test ecx, ecx
je 0x4cfeb4
push ebp
push ebp
push 0x64
lea edx, [esp + 0x44]
push edx
push eax
mov eax, dword [ecx + 8]
call eax
mov ecx, eax
add esp, 0x14
mov dword [esp + 0x10], ecx
cmp ecx, 0x20a
je 0x4cfec0
jmp 0x4cfeb6
xor ecx, ecx
mov esi, edi
test ecx, ecx
jne 0x4d01cd
mov eax, dword [esp + 0x1c]
mov byte [edi + 0x10], al
mov eax, dword [esp + 0x24]
mov dword [edi + 4], eax
mov eax, dword [edi]
mov dword [eax + 0xc0], 0x49d6e0
lea ecx, [eax + 0xc0]
mov dword [eax + 0xc4], edi
mov eax, dword [eax + 0x40]
mov edx, dword [eax]
test edx, edx
je 0x4cfefb
push ecx
push 0xf
push eax
mov eax, dword [edx + 0x28]
call eax
add esp, 0xc
mov dword [ebx + 4], edi
mov edx, dword [edi]
mov dword [edi + 8], ebp
mov dword [edi + 0xc], ebp
cmp byte [edx + 0xe], 0
je 0x4cff11
or word [edi + 0x18], 1
movzx ecx, byte [esp + 0x49]
movzx eax, byte [esp + 0x48]
shl ecx, 8
or ecx, eax
shl ecx, 8
mov dword [edi + 0x24], ecx
cmp ecx, 0x200
jb 0x4cff64
cmp ecx, 0x10000
ja 0x4cff64
lea eax, [ecx - 1]
test ecx, eax
jne 0x4cff64
mov cl, byte [esp + 0x4c]
or word [edi + 0x18], 2
mov eax, dword [esp + 0x6c]
bswap eax
test eax, eax
setne al
mov byte [edi + 0x11], al
mov eax, dword [esp + 0x78]
bswap eax
test eax, eax
setne al
mov byte [edi + 0x12], al
jmp 0x4cff79
mov dword [edi + 0x24], ebp
cmp dword [esp + 0x20], ebp
je 0x4cff77
cmp dword [esp + 0x14], ebp
jne 0x4cff77
mov word [edi + 0x11], bp
xor cl, cl
movzx ebp, cl
lea eax, [edi + 0x24]
push ebp
push eax
push edx
call fcn.004ead60
mov ecx, eax
add esp, 0xc
mov dword [esp + 0x10], ecx
mov esi, edi
test ecx, ecx
jne 0x4d01cd
mov eax, dword [edi + 0x24]
sub eax, ebp
mov dword [edi + 0x44], 1
mov dword [edi + 0x28], eax
cmp byte [ebx + 9], cl
je 0x4d0033
cmp byte [0x58d42c], cl
jne 0x4cffca
mov eax, dword [0x590c1c]
mov dword [edi + 0x48], eax
mov dword [0x590c1c], edi
jmp 0x4d0033
push 2
call dword [0x58d470]
add esp, 4
mov esi, eax
cmp byte [0x58d42c], 0
je 0x4cfffc
push 0
call dword [0x58d470]
add esp, 4
mov dword [edi + 0x3c], eax
test eax, eax
jne 0x4cfffc
lea ebp, [eax + 7]
mov esi, edi
jmp 0x4d01d1
test esi, esi
je 0x4d0021
push esi
call dword [0x58d478]
mov eax, dword [0x590c1c]
push esi
mov dword [edi + 0x48], eax
mov dword [0x590c1c], edi
call dword [0x58d480]
add esp, 8
jmp 0x4d002f
mov eax, dword [0x590c1c]
mov dword [edi + 0x48], eax
mov dword [0x590c1c], edi
mov ecx, dword [esp + 0x10]
cmp byte [ebx + 9], 0
mov esi, edi
je 0x4d00bc
mov eax, dword [esp + 0x24]
xor edx, edx
mov ebp, dword [eax + 0x14]
test ebp, ebp
jle 0x4d00bc
mov ecx, dword [eax + 0x10]
add ecx, 4
mov eax, dword [ecx]
test eax, eax
je 0x4d005e
cmp byte [eax + 9], 0
jne 0x4d0068
inc edx
add ecx, 0x10
cmp edx, ebp
jl 0x4d0052
jmp 0x4d00b8
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x4d0079
nop
mov eax, ecx
mov ecx, dword [eax + 0x1c]
test ecx, ecx
jne 0x4d0070
mov edx, dword [ebx + 4]
cmp edx, dword [eax + 4]
jae 0x4d0090
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], 0
mov dword [eax + 0x1c], ebx
jmp 0x4d00b8
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x4d00a5
cmp dword [ecx + 4], edx
jae 0x4d00a5
mov eax, ecx
mov ecx, dword [eax + 0x18]
test ecx, ecx
jne 0x4d0097
mov ecx, dword [eax + 0x18]
mov dword [ebx + 0x18], ecx
mov dword [ebx + 0x1c], eax
test ecx, ecx
je 0x4d00b5
mov dword [ecx + 0x1c], ebx
mov dword [eax + 0x18], ebx
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x30]
mov dword [eax], ebx
test ecx, ecx
je 0x4d00e1
mov eax, dword [esp + 0x18]
mov ebp, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x10], ecx
test esi, esi
jne 0x4d01d1
jmp 0x4d0241
cmp byte [ebx + 9], 0
mov esi, dword [ebx + 4]
je 0x4d0111
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x4d00fc
push ebx
call fcn.0049d7c0
add esp, 4
cmp byte [ebx + 9], 0
je 0x4d0111
add dword [ebx + 0xc], 0xffffffff
jne 0x4d0111
push ebx
call fcn.00516c80
add esp, 4
cmp dword [esi + 0x34], 0
jne 0x4d0196
cmp byte [ebx + 9], 0
mov esi, dword [ebx + 4]
je 0x4d0136
inc dword [ebx + 0xc]
cmp byte [ebx + 0xa], 0
jne 0x4d0136
push ebx
call fcn.0049d7c0
add esp, 4
mov eax, dword [esi]
mov esi, dword [eax + 0xe4]
mov eax, dword [esi + 0x24]
add eax, dword [esi + 0x20]
cdq
push edx
push eax
push 0
push 0x1f4000
mov dword [esi + 0x18], 0xfffff830
call fcn.0052e950
test edx, edx
jl 0x4d0174
jg 0x4d0167
cmp eax, 0x3b9aca00
jbe 0x4d0174
mov eax, 0x3b9aca00
mov dword [esp + 0x34], 0
push eax
push dword [esi + 0x34]
call dword [0x58d4a0]
add esp, 8
cmp byte [ebx + 9], 0
je 0x4d0196
add dword [ebx + 0xc], 0xffffffff
jne 0x4d0196
push ebx
call fcn.00516c80
add esp, 4
mov eax, dword [edi]
mov ecx, dword [eax + 0x40]
mov edx, dword [ecx]
test edx, edx
je 0x4d01b0
lea eax, [edi + 4]
push eax
mov eax, dword [edx + 0x28]
push 0x1e
push ecx
call eax
add esp, 0xc
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4d01c6
push eax
call dword [0x58d480]
add esp, 4
mov eax, ebp
jmp 0x4cfbde
mov ebp, dword [esp + 0x10]
mov eax, dword [esi]
test eax, eax
je 0x4d01e2
push 0
push eax
call fcn.004e9a80
add esp, 8
cmp dword [0x58d428], 0
je 0x4d0230
mov eax, dword [0x590a50]
test eax, eax
je 0x4d01fe
push eax
call dword [0x58d478]
add esp, 4
push esi
call dword [0x58d454]
sub dword [0x5909e8], eax
dec dword [0x590a0c]
push esi
call dword [0x58d44c]
mov eax, dword [0x590a50]
add esp, 8
test eax, eax
je 0x4d0241
push eax
call dword [0x58d480]
add esp, 4
jmp 0x4d0241
push esi
call dword [0x58d44c]
add esp, 4
jmp 0x4d0241
mov ebp, 7
cmp dword [0x58d428], 0
je 0x4d029c
mov eax, dword [0x590a50]
test eax, eax
je 0x4d025d
push eax
call dword [0x58d478]
add esp, 4
push ebx
call dword [0x58d454]
sub dword [0x5909e8], eax
dec dword [0x590a0c]
push ebx
call dword [0x58d44c]
mov eax, dword [0x590a50]
add esp, 8
test eax, eax
je 0x4d02a6
push eax
call dword [0x58d480]
mov eax, dword [esp + 0x34]
add esp, 4
mov dword [eax], 0
jmp 0x4d01b4
push ebx
call dword [0x58d44c]
add esp, 4
mov eax, dword [esp + 0x30]
mov dword [eax], 0
jmp 0x4d01b4