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

Disassembly:
sub esp, 0x238
mov eax, dword [0x68f500]
xor eax, esp
mov dword [esp + 0x234], eax
mov eax, dword [esp + 0x240]
push ebx
mov ebx, dword [esp + 0x240]
mov dword [esp + 0x60], eax
push ebp
push esi
mov eax, dword [ebx]
lea esi, [ebx + 0x2678]
mov ecx, dword [ebx + 0x28]
mov dword [esp + 0x7c], eax
push edi
mov eax, dword [eax + 0xc]
mov dword [esp + 0x68], ebx
mov dword [esp + 0x60], esi
lea edi, [eax*8 + 0x5f50a8]
mov eax, 0x24924925
mul ecx
mov eax, dword [edi]
sub ecx, edx
mov dword [esp + 0x14], edi
shr ecx, 1
add ecx, edx
shr ecx, 3
mov dword [esp + 0x7c], ecx
cmp eax, 0x159b
je 0x4c381d
lea ecx, [eax + 0x5f3b08]
xor esi, esi
mov al, byte [ecx]
xor ebp, ebp
mov dword [esp + 0x50], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x28], ebp
mov dword [esp + 0x5c], esi
test al, al
je 0x4c3800
xor bl, bl
mov byte [esp + 0x13], bl
cmp al, 0x20
jne 0x4c2fc6
nop
inc ecx
cmp byte [ecx], 0x20
je 0x4c2fc0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x70]
push ecx
call fcn.004c4c70
add esp, 0x10
mov ecx, eax
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x64], ecx
je 0x4c3652
test byte [edi + 4], 1
mov eax, 0
mov edx, dword [esp + 0x1c]
setne al
xor esi, esi
add eax, 0x7fffffff
mov dword [esp + 0x58], esi
test edx, edx
je 0x4c336c
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
nop dword [eax]
mov byte [esp + 0x12], 0
test ecx, ecx
je 0x4c335b
push 1
push ecx
push dword [esp + 0x74]
call fcn.004b6130
mov ecx, dword [esp + 0x78]
add esp, 0xc
mov ecx, dword [ecx + 0x54]
movups xmm0, xmmword [ecx + 0x6c]
mov ecx, dword [ecx + 0x7c]
mov dword [esp + 0x94], ecx
movups xmmword [esp + 0x84], xmm0
test eax, eax
jne 0x4c334f
mov edx, dword [esp + 0x84]
mov eax, edx
shr eax, 0x10
cmp ax, 2
jle 0x4c334f
or ebx, 0xffffffff
movsx eax, dx
xor edx, edx
mov dword [esp + 0x38], ebx
xor ecx, ecx
mov dword [esp + 0x24], ebx
or edi, ebx
mov dword [esp + 0x34], eax
mov dword [esp + 0x40], edx
test eax, eax
jle 0x4c35f7
mov esi, dword [esp + 0x90]
lea eax, [edi + 1]
movsx edi, word [esi + edx*2]
mov dword [esp + 0x54], eax
cmp edi, eax
jle 0x4c3148
mov edx, dword [esp + 0x14]
mov esi, eax
test byte [edx + 4], 3
mov edx, dword [esp + 0x88]
lea edx, [edx + eax*8]
jne 0x4c30fd
add edx, 4
nop
test ebx, ebx
js 0x4c30e2
mov eax, dword [edx]
cmp eax, ecx
jl 0x4c30e2
cmp ebp, eax
jg 0x4c30f3
mov ebp, eax
jmp 0x4c30f3
mov eax, dword [esp + 0x5c]
mov ebx, esi
mov ecx, dword [edx]
cmp eax, ecx
cmovge eax, ecx
mov dword [esp + 0x5c], eax
inc esi
add edx, 8
cmp esi, edi
jle 0x4c30d0
jmp 0x4c3127
add edx, 4
test ebx, ebx
js 0x4c3116
mov eax, dword [edx]
cmp eax, ecx
jg 0x4c3116
cmp dword [esp + 0x5c], eax
jl 0x4c311f
mov dword [esp + 0x5c], eax
jmp 0x4c311f
mov ecx, dword [edx]
mov ebx, esi
cmp ebp, ecx
cmovle ebp, ecx
inc esi
add edx, 8
cmp esi, edi
jle 0x4c3100
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x90]
mov dword [esp + 0x28], ebp
cmp ebx, dword [esp + 0x24]
jle 0x4c3148
mov eax, dword [esp + 0x54]
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], edi
inc edx
mov dword [esp + 0x40], edx
cmp edx, dword [esp + 0x34]
jl 0x4c30a2
test ebx, ebx
js 0x4c35f3
mov eax, dword [esp + 0x88]
or esi, 0xffffffff
mov ebp, dword [esp + 0x8c]
mov edx, ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x34], ebx
mov eax, dword [eax + ebx*8]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x40], ebx
mov al, byte [eax + ebx]
and al, 3
cmp al, 1
cmove esi, ebx
mov edi, esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], edi
cmp edx, dword [esp + 0x38]
jle 0x4c31a9
dec edx
jmp 0x4c31ad
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x88]
mov esi, dword [eax + edx*8 + 4]
mov eax, esi
sub eax, ecx
jns 0x4c31c2
mov eax, ecx
sub eax, esi
cmp eax, 5
jle 0x4c3201
mov esi, dword [esp + 0x88]
mov ebp, dword [esp + 0x88]
mov edi, dword [esi + edx*8]
mov esi, edi
sub esi, dword [ebp + ebx*8]
mov ebp, dword [esp + 0x8c]
jns 0x4c31f3
mov esi, dword [esp + 0x88]
mov esi, dword [esi + ebx*8]
sub esi, edi
lea eax, [eax + eax*4]
shl eax, 2
cmp esi, eax
jle 0x4c321f
mov edi, dword [esp + 0x4c]
mov al, byte [edx + ebp]
and al, 3
mov dword [esp + 0x3c], edx
cmp al, 1
jne 0x4c321b
test edi, edi
mov dword [esp + 0x48], edx
cmovs edi, edx
mov dword [esp + 0x4c], edi
cmp edx, ebx
jne 0x4c31a0
mov ebp, dword [esp + 0x40]
cmp ebp, dword [esp + 0x24]
jge 0x4c322c
inc ebp
jmp 0x4c3230
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x88]
mov edx, dword [esi + ebp*8 + 4]
mov eax, edx
sub eax, ecx
jns 0x4c3245
mov eax, ecx
sub eax, edx
cmp eax, 5
jle 0x4c3265
mov esi, dword [esi + ebp*8]
mov edx, esi
mov edi, dword [esp + 0x18]
sub edx, edi
jns 0x4c325b
mov edx, edi
sub edx, esi
lea eax, [eax + eax*4]
shl eax, 2
cmp edx, eax
jle 0x4c3292
mov eax, dword [esp + 0x8c]
mov esi, ebp
mov dword [esp + 0x34], esi
mov al, byte [eax + ebp]
and al, 3
cmp al, 1
jne 0x4c328c
mov edi, dword [esp + 0x48]
test edi, edi
mov dword [esp + 0x4c], ebp
cmovs edi, ebp
mov dword [esp + 0x48], edi
cmp ebp, ebx
jne 0x4c3223
jmp 0x4c3296
mov esi, dword [esp + 0x34]
mov dword [esp + 0x40], ebp
mov ebp, dword [esp + 0x14]
test byte [ebp + 4], 0x10
je 0x4c356e
mov eax, dword [esp + 0x68]
mov edi, dword [esp + 0x3c]
mov ebp, dword [eax + 0x28]
mov eax, 0x51eb851f
mul ebp
mov eax, dword [esp + 0x88]
shr edx, 3
mov dword [esp + 0x74], edx
mov eax, dword [eax + esi*8]
mov esi, dword [esp + 0x88]
mov edi, dword [esi + edi*8]
mov esi, eax
sub esi, edi
sub edi, eax
test esi, esi
cmovns edi, esi
cmp edi, edx
mov edi, dword [esp + 0x34]
jge 0x4c3587
mov eax, dword [esp + 0x24]
mov edx, edi
sub edx, dword [esp + 0x3c]
sub eax, dword [esp + 0x38]
add edx, 2
cmp edx, eax
jg 0x4c3587
mov esi, dword [esp + 0x18]
shr ebp, 2
mov dword [esp + 0x70], ebp
xor ebp, ebp
xor eax, eax
mov dword [esp + 0x54], eax
mov eax, ebx
nop word [eax + eax]
cmp eax, dword [esp + 0x38]
jle 0x4c3329
dec eax
jmp 0x4c332d
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x88]
mov edx, dword [edx + eax*8]
cmp edx, esi
jne 0x4c33a3
cmp eax, ebx
jne 0x4c3320
mov bl, byte [esp + 0x13]
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x14]
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
inc esi
mov dword [esp + 0x58], esi
cmp esi, edx
jb 0x4c3020
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x50]
cmp eax, 0x80000000
je 0x4c3656
cmp eax, 0x7fffffff
je 0x4c3656
test bl, bl
je 0x4c3644
mov dword [esp + edx*4 + 0xac], eax
inc edx
mov dword [esp + 0x30], edx
jmp 0x4c3656
cmp eax, ebx
je 0x4c333f
cmp edx, esi
mov esi, edi
mov dword [esp + 0x18], esi
setl byte [esp + 0x47]
xor al, al
mov byte [esp + 0x12], al
nop word [eax + eax]
test al, al
jne 0x4c33e7
mov eax, dword [esp + 0x8c]
or ebp, 0xffffffff
mov esi, edi
mov byte [esp + 0x12], 1
mov dword [esp + 0x18], esi
mov al, byte [edi + eax]
and al, 3
cmp al, 1
cmove ebp, edi
mov dword [esp + 0x54], ebp
cmp edi, dword [esp + 0x24]
jge 0x4c33f0
inc edi
jmp 0x4c33f4
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x88]
mov eax, ecx
mov ebx, dword [edx + esi*8 + 4]
sub eax, ebx
jns 0x4c3409
mov eax, ebx
sub eax, ecx
cmp eax, dword [esp + 0x70]
jle 0x4c341a
xor al, al
mov byte [esp + 0x12], al
jmp 0x4c34aa
mov eax, dword [edx + edi*8 + 4]
mov edx, eax
sub edx, ebx
sub ebx, eax
test edx, edx
cmovns ebx, edx
mov dword [esp + 0x78], ebx
cmp ebx, 5
jle 0x4c3460
mov edx, dword [esp + 0x88]
mov esi, dword [edx + esi*8]
mov eax, dword [edx + edi*8]
mov edx, eax
sub edx, esi
sub esi, eax
test edx, edx
lea eax, [ebx + ebx*4]
cmovns esi, edx
shl eax, 2
cmp esi, eax
mov esi, dword [esp + 0x18]
jg 0x4c3460
xor al, al
mov byte [esp + 0x12], al
jmp 0x4c34aa
mov eax, dword [esp + 0x8c]
mov al, byte [edi + eax]
and al, 3
cmp al, 1
jne 0x4c3479
test ebp, ebp
mov dword [esp + 0x54], edi
cmovs ebp, edi
mov eax, dword [esp + 0x88]
mov esi, dword [eax + esi*8]
mov edx, dword [eax + edi*8]
cmp esi, edx
mov eax, edx
setl bl
sub eax, esi
sub esi, edx
test eax, eax
cmovns esi, eax
cmp bl, byte [esp + 0x47]
jne 0x4c34a2
cmp esi, dword [esp + 0x74]
jge 0x4c34bf
mov esi, dword [esp + 0x18]
mov al, byte [esp + 0x12]
mov ebx, dword [esp + 0x3c]
cmp edi, ebx
jne 0x4c33c0
mov edi, dword [esp + 0x34]
jmp 0x4c358b
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x88]
mov esi, dword [esp + 0x78]
mov ebx, dword [eax + edx*8 + 4]
cmp edi, dword [esp + 0x24]
jge 0x4c34db
inc edi
jmp 0x4c34df
mov edi, dword [esp + 0x38]
mov ecx, dword [eax + edi*8 + 4]
mov eax, ecx
sub eax, ebx
jns 0x4c34ed
mov eax, ebx
sub eax, ecx
cmp eax, 5
jle 0x4c351c
mov ecx, dword [esp + 0x88]
mov eax, dword [esp + 0x40]
mov edx, dword [ecx + edx*8]
mov eax, dword [ecx + eax*8]
mov ecx, eax
sub ecx, edx
sub edx, eax
test ecx, ecx
lea eax, [esi + esi*4]
cmovns edx, ecx
shl eax, 2
cmp edx, eax
jle 0x4c3548
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x54], edi
mov al, byte [edi + eax]
and al, 3
cmp al, 1
jne 0x4c3539
test ebp, ebp
mov dword [esp + 0x54], edi
cmovs ebp, edi
cmp edi, dword [esp + 0x3c]
je 0x4c3555
mov eax, dword [esp + 0x88]
jmp 0x4c34d2
cmp edi, dword [esp + 0x38]
jle 0x4c3551
dec edi
jmp 0x4c3555
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
mov esi, ebp
mov edx, dword [esp + 0x88]
mov ebx, eax
mov ecx, dword [edx + eax*8 + 4]
mov eax, dword [esp + 0x54]
jmp 0x4c359a
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x3c]
mov edx, dword [esp + 0x88]
jmp 0x4c359e
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x48]
mov eax, dword [esp + 0x4c]
mov edx, dword [esp + 0x88]
mov ebp, dword [esp + 0x14]
test esi, esi
js 0x4c35c4
test eax, eax
js 0x4c35c4
mov esi, dword [edx + esi*8]
mov eax, dword [edx + eax*8]
mov edx, eax
sub edx, esi
sub esi, eax
test edx, edx
cmovns esi, edx
cmp esi, dword [esp + 0x7c]
jle 0x4c35c4
mov byte [esp + 0x12], 0
jmp 0x4c35f3
mov edx, dword [esp + 0x8c]
mov al, byte [edx + ebx]
and al, 3
cmp al, 1
jne 0x4c35e4
mov al, byte [edx + edi]
and al, 3
cmp al, 1
jne 0x4c35e4
mov byte [esp + 0x12], 0
jmp 0x4c35f3
test byte [ebp + 4], 4
mov byte [esp + 0x12], 1
jne 0x4c333f
mov esi, dword [esp + 0x58]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
test byte [edi + 4], 1
je 0x4c3624
cmp ecx, eax
jle 0x4c363b
mov bl, byte [esp + 0x12]
mov eax, ecx
mov dword [esp + 0x2c], eax
mov byte [esp + 0x13], bl
jmp 0x4c3357
cmp ecx, eax
jge 0x4c363b
mov bl, byte [esp + 0x12]
mov eax, ecx
mov dword [esp + 0x2c], eax
mov byte [esp + 0x13], bl
jmp 0x4c3357
mov bl, byte [esp + 0x13]
jmp 0x4c3357
mov dword [esp + esi*4 + 0x178], eax
inc esi
mov dword [esp + 0x50], esi
jmp 0x4c3656
mov edx, dword [esp + 0x30]
mov al, byte [ecx]
test al, al
jne 0x4c2fb4
mov ebx, dword [esp + 0x5c]
mov eax, edx
test esi, esi
jne 0x4c367a
mov dword [esp + 0x50], esi
mov dword [esp + 0x30], edx
test eax, eax
je 0x4c3800
mov esi, 1
cmp edx, esi
jbe 0x4c36be
mov eax, esi
test esi, esi
je 0x4c36b9
nop dword [eax]
mov ecx, dword [esp + eax*4 + 0xa8]
mov edx, dword [esp + eax*4 + 0xac]
cmp edx, ecx
jge 0x4c36b5
mov dword [esp + eax*4 + 0xac], ecx
mov dword [esp + eax*4 + 0xa8], edx
sub eax, 1
jne 0x4c3690
mov edx, dword [esp + 0x30]
inc esi
cmp esi, edx
jb 0x4c3683
mov edi, dword [esp + 0x50]
mov esi, 1
cmp edi, esi
jbe 0x4c3741
nop
mov eax, esi
test esi, esi
je 0x4c3705
nop word [eax + eax]
mov ecx, dword [esp + eax*4 + 0x174]
mov edx, dword [esp + eax*4 + 0x178]
cmp edx, ecx
jge 0x4c3705
mov dword [esp + eax*4 + 0x178], ecx
mov dword [esp + eax*4 + 0x174], edx
sub eax, 1
jne 0x4c36e0
inc esi
cmp esi, edi
jb 0x4c36d0
mov edx, dword [esp + 0x60]
mov ecx, dword [edx + 0xd8]
lea eax, [ecx*8 + 0x37]
add eax, ecx
lea esi, [edx + eax*4]
lea eax, [ecx + 1]
mov dword [edx + 0xd8], eax
mov edx, dword [esp + 0x30]
shr edi, 1
mov eax, dword [esp + edi*4 + 0x178]
test edx, edx
jne 0x4c3778
mov dword [esi + 0xc], eax
mov dword [esi], eax
jmp 0x4c3786
mov esi, dword [esp + 0x60]
mov ecx, dword [esi + 0xd8]
lea eax, [ecx + ecx*8]
lea esi, [esi + eax*4]
lea eax, [ecx + 1]
add esi, 0xdc
mov ecx, dword [esp + 0x60]
mov dword [ecx + 0xd8], eax
test edi, edi
jne 0x4c372d
shr edx, 1
mov eax, dword [esp + edx*4 + 0xac]
mov dword [esi + 0xc], eax
mov dword [esi], eax
jmp 0x4c3786
shr edx, 1
mov dword [esi], eax
mov eax, dword [esp + edx*4 + 0xac]
mov dword [esi + 0xc], eax
mov edi, dword [esi + 0xc]
mov edx, dword [esi]
cmp edi, edx
je 0x4c37b7
mov eax, dword [esp + 0x14]
mov ecx, 0
test byte [eax + 4], 3
setne cl
xor eax, eax
cmp edi, edx
setg al
cmp eax, ecx
je 0x4c37b7
lea eax, [edi + edx]
cdq
sub eax, edx
sar eax, 1
mov dword [esi + 0xc], eax
mov dword [esi], eax
mov edi, dword [esp + 0x14]
xor eax, eax
mov dword [esi + 0x18], ebp
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x20], 0
test byte [edi + 4], 1
je 0x4c37dc
mov dword [esi + 0x20], 2
mov eax, 2
test byte [edi + 4], 2
je 0x4c37e8
or eax, 4
mov dword [esi + 0x20], eax
test byte [edi + 4], 4
je 0x4c37f4
or eax, 8
mov dword [esi + 0x20], eax
test byte [edi + 4], 8
je 0x4c3800
or eax, 0x10
mov dword [esi + 0x20], eax
mov eax, dword [edi + 8]
add edi, 8
mov dword [esp + 0x14], edi
cmp eax, 0x159b
jne 0x4c2f90
mov ebx, dword [esp + 0x68]
mov esi, dword [esp + 0x60]
mov ebp, dword [esi + 0xd8]
test ebp, ebp
je 0x4c38f8
xor eax, eax
test ebp, ebp
je 0x4c384f
lea ecx, [esi + 0xdc]
nop word [eax + eax]
mov dword [esp + eax*4 + 0x84], ecx
inc eax
add ecx, 0x24
cmp eax, ebp
jb 0x4c3840
mov ebx, 1
cmp ebp, ebx
jbe 0x4c38aa
nop dword [eax + eax]
mov edx, ebx
mov eax, dword [esp + edx*4 + 0x80]
test byte [eax + 0x20], 6
je 0x4c3873
mov esi, dword [eax]
jmp 0x4c3876
mov esi, dword [eax + 0xc]
mov ecx, dword [esp + edx*4 + 0x84]
test byte [ecx + 0x20], 6
je 0x4c3887
mov edi, dword [ecx]
jmp 0x4c388a
mov edi, dword [ecx + 0xc]
cmp edi, esi
jge 0x4c38a1
mov dword [esp + edx*4 + 0x84], eax
mov dword [esp + edx*4 + 0x80], ecx
sub edx, 1
jne 0x4c3862
inc ebx
cmp ebx, ebp
jb 0x4c3860
mov esi, dword [esp + 0x60]
mov eax, dword [esi + 0xd8]
xor edx, edx
sub eax, 1
je 0x4c38f4
nop word [eax + eax]
mov eax, dword [esp + edx*4 + 0x84]
test byte [eax + 0x20], 6
je 0x4c38d0
add eax, 0xc
mov ecx, dword [esp + edx*4 + 0x88]
test byte [ecx + 0x20], 6
je 0x4c38e0
add ecx, 0xc
mov ecx, dword [ecx]
cmp dword [eax], ecx
jle 0x4c38e8
mov dword [eax], ecx
mov eax, dword [esi + 0xd8]
inc edx
dec eax
cmp edx, eax
jb 0x4c38c0
xor eax, eax
jmp 0x4c392c
mov edx, dword [ebx + 0x24]
xor ecx, ecx
mov esi, dword [edx + 8]
cmp dword [edx + 4], ecx
jbe 0x4c3927
mov edi, dword [esp + 0x80]
lea ebx, [ecx + 0x42]
nop
movzx eax, word [esi + ecx*2]
and eax, 0x3fff
cmp eax, dword [edi]
jne 0x4c3921
mov word [esi + ecx*2], bx
inc ecx
cmp ecx, dword [edx + 4]
jb 0x4c3910
mov eax, 1
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005ab3d6
add esp, 0x238
ret