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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
mov ecx, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x14]
add ecx, ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
cmp byte [esi + 0x20], 0
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x14], eax
je 0x4c0574
pop edi
pop esi
mov eax, 0xfffffdf5
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 0x5c]
call fcn.004c4210
push dword [esi + 0x58]
call fcn.004c4210
mov edx, dword [ebp + 0x10]
mov dword [esi + 0x5c], edi
mov dword [esi + 0x58], edi
mov dword [edx], edi
add esp, 8
mov edx, dword [ebp - 8]
cmp ebx, edx
jne 0x4c05a1
test edi, edi
je 0x4c0996
mov ecx, dword [esi + 0x78]
xor edi, edi
mov dword [ebp - 0xc], edi
cmp ecx, 0xc
ja case.default.0x4c05ae
jmp dword [ecx*4 + 0x4c0b00]
mov al, byte [ebx]
and al, 0xe0
cmp al, 0x20
jne 0x4c09bf
mov dl, byte [ebx]
mov al, dl
and al, 0xe0
cmp al, 0x20
jne 0x4c05ea
cmp ecx, 2
je 0x4c09bf
mov dword [esi + 0x74], 1
mov dword [esi + 0x78], 3
mov dword [esi + 0x60], edi
mov dword [esi + 0x70], edi
jmp 0x4c0592
test dl, dl
jns 0x4c0604
mov dword [esi + 0x74], 1
mov dword [esi + 0x78], 4
mov dword [esi + 0x60], edi
mov dword [esi + 0x70], edi
jmp 0x4c0592
cmp dl, 0x40
je 0x4c061c
test dl, dl
je 0x4c061c
cmp dl, 0x10
je 0x4c061c
mov eax, 4
lea ecx, [eax - 1]
jmp 0x4c0626
mov eax, 5
mov ecx, 2
mov dword [esi + 0x74], ecx
mov dword [esi + 0x78], eax
movzx eax, byte [ebx]
shr al, 6
and al, 1
mov byte [esi + 0x7d], al
movzx eax, byte [ebx]
and al, 0xf0
cmp al, 0x10
sete al
cmp dword [esi + 0x74], 2
mov byte [esi + 0x7e], al
jne 0x4c064b
inc ebx
mov dword [esi + 0x60], edi
mov dword [esi + 0x70], edi
jmp 0x4c0592
mov eax, dword [esi + 0x6c]
lea ecx, [ebp - 4]
push 5
push edx
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x68]
push ebx
push dword [esi + 0x70]
mov dword [ebp - 0x1c], eax
lea eax, [esi + 0x70]
push dword [esi + 0x60]
mov dword [ebp - 4], edi
push ecx
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.004bed20
mov edi, eax
add esp, 0x20
cmp edi, 0xffffffff
je 0x4c09bf
mov ecx, dword [ebp - 0x18]
cmp ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x20]
cmovae ecx, dword [ebp - 0x1c]
cmp eax, ecx
ja 0x4c09bf
mov dword [esi + 0x60], eax
test edi, edi
js 0x4c09c4
add ebx, edi
cmp dword [ebp - 4], 0
je 0x4c0ae3
push 0
push esi
mov dword [esi + 0x6c], 0xffffffff
mov dword [esi + 0x18], eax
call fcn.004bf530
mov edi, dword [ebp - 0xc]
mov dword [esi + 0x78], 1
jmp 0x4c058f
cmp dword [esi + 0x74], 1
jne 0x4c06e8
mov ecx, 7
jmp 0x4c06f7
xor ecx, ecx
cmp byte [esi + 0x7d], cl
setne cl
lea ecx, [ecx*2 + 4]
mov eax, dword [esi + 0xc]
push ecx
push edx
add eax, 0x3d
mov dword [ebp - 4], edi
push ebx
push dword [esi + 0x70]
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 4]
push dword [esi + 0x60]
lea eax, [esi + 0x70]
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.004bed20
mov edi, eax
add esp, 0x20
cmp edi, 0xffffffff
je 0x4c09bf
mov ecx, dword [ebp - 0x24]
cmp ecx, dword [ebp - 0x1c]
ja 0x4c09bf
mov dword [esi + 0x60], ecx
test edi, edi
js 0x4c09c4
add ebx, edi
cmp dword [ebp - 4], 0
je 0x4c0ae3
test ecx, ecx
je 0x4c09bf
cmp dword [esi + 0x74], 1
je 0x4c09d1
mov edi, dword [ebp - 0xc]
lea eax, [ecx - 1]
mov dword [esi + 0x64], eax
mov dword [esi + 0x78], 9
jmp 0x4c0592
mov al, byte [ebx]
shr al, 7
mov byte [esi + 0x7c], al
mov dword [esi + 0x78], 6
mov dword [esi + 0x60], edi
mov dword [esi + 0x70], edi
push 7
push edx
push ebx
push dword [esi + 0x70]
lea eax, [esi + 0x70]
mov dword [ebp - 4], edi
push dword [esi + 0x60]
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004bed20
mov edi, eax
add esp, 0x20
cmp edi, 0xffffffff
je 0x4c09bf
mov eax, dword [ebp - 0x28]
cmp eax, 0x10000
ja 0x4c09bf
mov dword [esi + 0x60], eax
test edi, edi
js 0x4c09c4
add ebx, edi
cmp dword [ebp - 4], 0
je 0x4c0ae3
cmp byte [esi + 0x7c], 0
lea edi, [esi + 0x50]
je 0x4c07fc
lea eax, [esi + 0x24]
push eax
call fcn.004c4400
mov eax, dword [esi + 0x60]
add esp, 4
add eax, eax
mov ecx, 7
jmp 0x4c0801
mov ecx, 8
push dword [ebp - 0x14]
inc eax
mov dword [esi + 0x78], ecx
push eax
push edi
call fcn.004c4260
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4c09c4
mov eax, dword [esi + 0x50]
push dword [eax + 0xc]
push dword [eax + 8]
lea eax, [esi + 0x28]
push eax
call fcn.004c1440
mov edi, dword [ebp - 0xc]
add esp, 0xc
jmp 0x4c0592
mov ecx, dword [esi + 0x60]
sub edx, ebx
cmp edx, ecx
sbb eax, eax
inc eax
cmp edx, ecx
push eax
lea eax, [ecx + ebx]
cmovb eax, dword [ebp - 8]
sub eax, ebx
push eax
push ebx
lea eax, [esi + 0x28]
push eax
lea eax, [esi + 0x24]
push eax
call fcn.004c4330
add esp, 0x14
mov edi, eax
test eax, eax
js 0x4c09c4
sub dword [esi + 0x60], eax
test eax, eax
js 0x4c09c4
add ebx, eax
cmp dword [esi + 0x60], 0
jne 0x4c0ae3
mov eax, dword [esi + 0x34]
mov edi, dword [ebp - 0xc]
mov byte [eax], 0
mov ecx, dword [esi + 0x34]
mov eax, dword [esi + 0x50]
sub ecx, dword [esi + 0x30]
mov dword [eax + 0xc], ecx
mov dword [esi + 0x78], 9
jmp 0x4c0592
mov edi, edx
sub edi, ebx
cmp edi, dword [esi + 0x60]
cmovae edi, dword [esi + 0x60]
push edi
push ebx
push dword [esi + 0x34]
call fcn.004be5e0
mov dword [esi + 0x34], eax
add esp, 0xc
mov eax, dword [esi + 0x60]
sub eax, edi
mov dword [esi + 0x60], eax
test edi, edi
js 0x4c09c4
add ebx, edi
test eax, eax
jmp 0x4c087c
mov al, byte [ebx]
shr al, 7
mov byte [esi + 0x7c], al
mov dword [esi + 0x78], 0xa
mov dword [esi + 0x60], edi
mov dword [esi + 0x70], edi
push 7
push edx
push ebx
push dword [esi + 0x70]
lea eax, [esi + 0x70]
mov dword [ebp - 4], edi
push dword [esi + 0x60]
lea ecx, [ebp - 4]
push ecx
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.004bed20
mov edi, eax
add esp, 0x20
cmp edi, 0xffffffff
je 0x4c09bf
mov eax, dword [ebp - 0x2c]
cmp eax, 0x10000
ja 0x4c09bf
mov dword [esi + 0x60], eax
test edi, edi
js 0x4c09c4
add ebx, edi
cmp dword [ebp - 4], 0
je 0x4c0ae3
cmp byte [esi + 0x7c], 0
lea edi, [esi + 0x54]
je 0x4c095b
lea eax, [esi + 0x24]
push eax
call fcn.004c4400
mov eax, dword [esi + 0x60]
add esp, 4
add eax, eax
mov ecx, 0xb
jmp 0x4c0960
mov ecx, 0xc
push dword [ebp - 0x14]
inc eax
mov dword [esi + 0x78], ecx
push eax
push edi
call fcn.004c4260
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x4c09c4
mov eax, dword [esi + 0x54]
push dword [eax + 0xc]
push dword [eax + 8]
lea eax, [esi + 0x3c]
push eax
call fcn.004c1440
add esp, 0xc
mov edi, 1
jmp 0x4c0592
cmp dword [ebp + 0x1c], 0
je 0x4c0a27
mov eax, dword [esi + 0x78]
cmp eax, 2
je 0x4c09ad
cmp eax, 1
jne 0x4c09bf
mov eax, dword [ebp + 0x10]
pop edi
pop esi
or dword [eax], 1
sub ebx, dword [ebp - 0x10]
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, 0xfffffdf5
mov eax, edi
mov byte [esi + 0x20], 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
dec ecx
mov dword [esi + 0x64], ecx
cmp ecx, 0x3d
jb 0x4c09ef
mov eax, dword [esi + 8]
add eax, 0xffffffc3
add ecx, eax
mov eax, dword [esi]
and ecx, dword [esi + 4]
mov eax, dword [eax + ecx*4]
movups xmm0, xmmword [eax]
jmp 0x4c0a14
mov eax, ecx
mov byte [ebp - 0x30], 0
shl eax, 4
add eax, ecx
lea ecx, [eax*4 + 0x529d80]
lea eax, [ecx + 0x14]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ecx + 0x3c]
mov dword [ebp - 0x34], eax
movups xmm0, xmmword [ebp - 0x3c]
mov eax, dword [ebp + 0xc]
movups xmmword [eax], xmm0
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x78], 2
or dword [eax], 2
sub ebx, dword [ebp - 0x10]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x60]
sub edx, ebx
cmp edx, ecx
sbb eax, eax
inc eax
cmp edx, ecx
push eax
lea eax, [ecx + ebx]
cmovb eax, dword [ebp - 8]
sub eax, ebx
push eax
push ebx
lea eax, [esi + 0x3c]
push eax
lea eax, [esi + 0x24]
push eax
call fcn.004c4330
add esp, 0x14
mov edi, eax
test eax, eax
js 0x4c09c4
sub dword [esi + 0x60], eax
test eax, eax
js 0x4c09c4
add ebx, eax
cmp dword [esi + 0x60], 0
jne 0x4c0ae3
mov eax, dword [esi + 0x48]
push dword [ebp + 0xc]
push esi
mov byte [eax], 0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x54]
sub ecx, dword [esi + 0x44]
mov dword [eax + 0xc], ecx
cmp dword [esi + 0x74], 2
jne 0x4c0a9b
call fcn.004bf6a0
jmp 0x4c0aa0
call fcn.004bf5e0
mov edi, eax
add esp, 8
test edi, edi
jne 0x4c09c4
jmp 0x4c0a1a
mov edi, edx
sub edi, ebx
cmp edi, dword [esi + 0x60]
cmovae edi, dword [esi + 0x60]
push edi
push ebx
push dword [esi + 0x48]
call fcn.004be5e0
mov dword [esi + 0x48], eax
add esp, 0xc
mov eax, dword [esi + 0x60]
sub eax, edi
mov dword [esi + 0x60], eax
test edi, edi
js 0x4c09c4
add ebx, edi
test eax, eax
je 0x4c0a78
cmp dword [ebp + 0x1c], 0
je 0x4c0a27
mov edi, 0xfffffdf5
mov byte [esi + 0x20], 1
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret