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

Disassembly:
sub esp, 0x238
mov eax, dword [0x68e500]
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 + 0x5f40a8]
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 0x4c294d
lea ecx, [eax + 0x5f2b08]
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 0x4c2930
xor bl, bl
mov byte [esp + 0x13], bl
cmp al, 0x20
jne 0x4c20f6
nop
inc ecx
cmp byte [ecx], 0x20
je 0x4c20f0
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x24]
push eax
push dword [esp + 0x70]
push ecx
call fcn.004c3da0
add esp, 0x10
mov ecx, eax
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x64], ecx
je 0x4c2782
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 0x4c249c
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x2c], eax
nop dword [eax]
mov byte [esp + 0x12], 0
test ecx, ecx
je 0x4c248b
push 1
push ecx
push dword [esp + 0x74]
call fcn.004b5260
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 0x4c247f
mov edx, dword [esp + 0x84]
mov eax, edx
shr eax, 0x10
cmp ax, 2
jle 0x4c247f
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 0x4c2727
mov esi, dword [esp + 0x90]
lea eax, [edi + 1]
movsx edi, word [esi + edx*2]
mov dword [esp + 0x54], eax
cmp edi, eax
jle 0x4c2278
mov edx, dword [esp + 0x14]
mov esi, eax
test byte [edx + 4], 3
mov edx, dword [esp + 0x88]
lea edx, [edx + eax*8]
jne 0x4c222d
add edx, 4
nop
test ebx, ebx
js 0x4c2212
mov eax, dword [edx]
cmp eax, ecx
jl 0x4c2212
cmp ebp, eax
jg 0x4c2223
mov ebp, eax
jmp 0x4c2223
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 0x4c2200
jmp 0x4c2257
add edx, 4
test ebx, ebx
js 0x4c2246
mov eax, dword [edx]
cmp eax, ecx
jg 0x4c2246
cmp dword [esp + 0x5c], eax
jl 0x4c224f
mov dword [esp + 0x5c], eax
jmp 0x4c224f
mov ecx, dword [edx]
mov ebx, esi
cmp ebp, ecx
cmovle ebp, ecx
inc esi
add edx, 8
cmp esi, edi
jle 0x4c2230
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x90]
mov dword [esp + 0x28], ebp
cmp ebx, dword [esp + 0x24]
jle 0x4c2278
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 0x4c21d2
test ebx, ebx
js 0x4c2723
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 0x4c22d9
dec edx
jmp 0x4c22dd
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x88]
mov esi, dword [eax + edx*8 + 4]
mov eax, esi
sub eax, ecx
jns 0x4c22f2
mov eax, ecx
sub eax, esi
cmp eax, 5
jle 0x4c2331
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 0x4c2323
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 0x4c234f
mov edi, dword [esp + 0x4c]
mov al, byte [edx + ebp]
and al, 3
mov dword [esp + 0x3c], edx
cmp al, 1
jne 0x4c234b
test edi, edi
mov dword [esp + 0x48], edx
cmovs edi, edx
mov dword [esp + 0x4c], edi
cmp edx, ebx
jne 0x4c22d0
mov ebp, dword [esp + 0x40]
cmp ebp, dword [esp + 0x24]
jge 0x4c235c
inc ebp
jmp 0x4c2360
mov ebp, dword [esp + 0x38]
mov esi, dword [esp + 0x88]
mov edx, dword [esi + ebp*8 + 4]
mov eax, edx
sub eax, ecx
jns 0x4c2375
mov eax, ecx
sub eax, edx
cmp eax, 5
jle 0x4c2395
mov esi, dword [esi + ebp*8]
mov edx, esi
mov edi, dword [esp + 0x18]
sub edx, edi
jns 0x4c238b
mov edx, edi
sub edx, esi
lea eax, [eax + eax*4]
shl eax, 2
cmp edx, eax
jle 0x4c23c2
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 0x4c23bc
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 0x4c2353
jmp 0x4c23c6
mov esi, dword [esp + 0x34]
mov dword [esp + 0x40], ebp
mov ebp, dword [esp + 0x14]
test byte [ebp + 4], 0x10
je 0x4c269e
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 0x4c26b7
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 0x4c26b7
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 0x4c2459
dec eax
jmp 0x4c245d
mov eax, dword [esp + 0x24]
mov edx, dword [esp + 0x88]
mov edx, dword [edx + eax*8]
cmp edx, esi
jne 0x4c24d3
cmp eax, ebx
jne 0x4c2450
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 0x4c2150
mov ecx, dword [esp + 0x64]
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x50]
cmp eax, 0x80000000
je 0x4c2786
cmp eax, 0x7fffffff
je 0x4c2786
test bl, bl
je 0x4c2774
mov dword [esp + edx*4 + 0xac], eax
inc edx
mov dword [esp + 0x30], edx
jmp 0x4c2786
cmp eax, ebx
je 0x4c246f
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 0x4c2517
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 0x4c2520
inc edi
jmp 0x4c2524
mov edi, dword [esp + 0x38]
mov edx, dword [esp + 0x88]
mov eax, ecx
mov ebx, dword [edx + esi*8 + 4]
sub eax, ebx
jns 0x4c2539
mov eax, ebx
sub eax, ecx
cmp eax, dword [esp + 0x70]
jle 0x4c254a
xor al, al
mov byte [esp + 0x12], al
jmp 0x4c25da
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 0x4c2590
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 0x4c2590
xor al, al
mov byte [esp + 0x12], al
jmp 0x4c25da
mov eax, dword [esp + 0x8c]
mov al, byte [edi + eax]
and al, 3
cmp al, 1
jne 0x4c25a9
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 0x4c25d2
cmp esi, dword [esp + 0x74]
jge 0x4c25ef
mov esi, dword [esp + 0x18]
mov al, byte [esp + 0x12]
mov ebx, dword [esp + 0x3c]
cmp edi, ebx
jne 0x4c24f0
mov edi, dword [esp + 0x34]
jmp 0x4c26bb
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 0x4c260b
inc edi
jmp 0x4c260f
mov edi, dword [esp + 0x38]
mov ecx, dword [eax + edi*8 + 4]
mov eax, ecx
sub eax, ebx
jns 0x4c261d
mov eax, ebx
sub eax, ecx
cmp eax, 5
jle 0x4c264c
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 0x4c2678
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 0x4c2669
test ebp, ebp
mov dword [esp + 0x54], edi
cmovs ebp, edi
cmp edi, dword [esp + 0x3c]
je 0x4c2685
mov eax, dword [esp + 0x88]
jmp 0x4c2602
cmp edi, dword [esp + 0x38]
jle 0x4c2681
dec edi
jmp 0x4c2685
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 0x4c26ca
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 0x4c26ce
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 0x4c26f4
test eax, eax
js 0x4c26f4
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 0x4c26f4
mov byte [esp + 0x12], 0
jmp 0x4c2723
mov edx, dword [esp + 0x8c]
mov al, byte [edx + ebx]
and al, 3
cmp al, 1
jne 0x4c2714
mov al, byte [edx + edi]
and al, 3
cmp al, 1
jne 0x4c2714
mov byte [esp + 0x12], 0
jmp 0x4c2723
test byte [ebp + 4], 4
mov byte [esp + 0x12], 1
jne 0x4c246f
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 0x4c2754
cmp ecx, eax
jle 0x4c276b
mov bl, byte [esp + 0x12]
mov eax, ecx
mov dword [esp + 0x2c], eax
mov byte [esp + 0x13], bl
jmp 0x4c2487
cmp ecx, eax
jge 0x4c276b
mov bl, byte [esp + 0x12]
mov eax, ecx
mov dword [esp + 0x2c], eax
mov byte [esp + 0x13], bl
jmp 0x4c2487
mov bl, byte [esp + 0x13]
jmp 0x4c2487
mov dword [esp + esi*4 + 0x178], eax
inc esi
mov dword [esp + 0x50], esi
jmp 0x4c2786
mov edx, dword [esp + 0x30]
mov al, byte [ecx]
test al, al
jne 0x4c20e4
mov ebx, dword [esp + 0x5c]
mov eax, edx
test esi, esi
jne 0x4c27aa
mov dword [esp + 0x50], esi
mov dword [esp + 0x30], edx
test eax, eax
je 0x4c2930
mov esi, 1
cmp edx, esi
jbe 0x4c27ee
mov eax, esi
test esi, esi
je 0x4c27e9
nop dword [eax]
mov ecx, dword [esp + eax*4 + 0xa8]
mov edx, dword [esp + eax*4 + 0xac]
cmp edx, ecx
jge 0x4c27e5
mov dword [esp + eax*4 + 0xac], ecx
mov dword [esp + eax*4 + 0xa8], edx
sub eax, 1
jne 0x4c27c0
mov edx, dword [esp + 0x30]
inc esi
cmp esi, edx
jb 0x4c27b3
mov edi, dword [esp + 0x50]
mov esi, 1
cmp edi, esi
jbe 0x4c2871
nop
mov eax, esi
test esi, esi
je 0x4c2835
nop word [eax + eax]
mov ecx, dword [esp + eax*4 + 0x174]
mov edx, dword [esp + eax*4 + 0x178]
cmp edx, ecx
jge 0x4c2835
mov dword [esp + eax*4 + 0x178], ecx
mov dword [esp + eax*4 + 0x174], edx
sub eax, 1
jne 0x4c2810
inc esi
cmp esi, edi
jb 0x4c2800
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 0x4c28a8
mov dword [esi + 0xc], eax
mov dword [esi], eax
jmp 0x4c28b6
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 0x4c285d
shr edx, 1
mov eax, dword [esp + edx*4 + 0xac]
mov dword [esi + 0xc], eax
mov dword [esi], eax
jmp 0x4c28b6
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 0x4c28e7
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 0x4c28e7
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 0x4c290c
mov dword [esi + 0x20], 2
mov eax, 2
test byte [edi + 4], 2
je 0x4c2918
or eax, 4
mov dword [esi + 0x20], eax
test byte [edi + 4], 4
je 0x4c2924
or eax, 8
mov dword [esi + 0x20], eax
test byte [edi + 4], 8
je 0x4c2930
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 0x4c20c0
mov ebx, dword [esp + 0x68]
mov esi, dword [esp + 0x60]
mov ebp, dword [esi + 0xd8]
test ebp, ebp
je 0x4c2a28
xor eax, eax
test ebp, ebp
je 0x4c297f
lea ecx, [esi + 0xdc]
nop word [eax + eax]
mov dword [esp + eax*4 + 0x84], ecx
inc eax
add ecx, 0x24
cmp eax, ebp
jb 0x4c2970
mov ebx, 1
cmp ebp, ebx
jbe 0x4c29da
nop dword [eax + eax]
mov edx, ebx
mov eax, dword [esp + edx*4 + 0x80]
test byte [eax + 0x20], 6
je 0x4c29a3
mov esi, dword [eax]
jmp 0x4c29a6
mov esi, dword [eax + 0xc]
mov ecx, dword [esp + edx*4 + 0x84]
test byte [ecx + 0x20], 6
je 0x4c29b7
mov edi, dword [ecx]
jmp 0x4c29ba
mov edi, dword [ecx + 0xc]
cmp edi, esi
jge 0x4c29d1
mov dword [esp + edx*4 + 0x84], eax
mov dword [esp + edx*4 + 0x80], ecx
sub edx, 1
jne 0x4c2992
inc ebx
cmp ebx, ebp
jb 0x4c2990
mov esi, dword [esp + 0x60]
mov eax, dword [esi + 0xd8]
xor edx, edx
sub eax, 1
je 0x4c2a24
nop word [eax + eax]
mov eax, dword [esp + edx*4 + 0x84]
test byte [eax + 0x20], 6
je 0x4c2a00
add eax, 0xc
mov ecx, dword [esp + edx*4 + 0x88]
test byte [ecx + 0x20], 6
je 0x4c2a10
add ecx, 0xc
mov ecx, dword [ecx]
cmp dword [eax], ecx
jle 0x4c2a18
mov dword [eax], ecx
mov eax, dword [esi + 0xd8]
inc edx
dec eax
cmp edx, eax
jb 0x4c29f0
xor eax, eax
jmp 0x4c2a5c
mov edx, dword [ebx + 0x24]
xor ecx, ecx
mov esi, dword [edx + 8]
cmp dword [edx + 4], ecx
jbe 0x4c2a57
mov edi, dword [esp + 0x80]
lea ebx, [ecx + 0x42]
nop
movzx eax, word [esi + ecx*2]
and eax, 0x3fff
cmp eax, dword [edi]
jne 0x4c2a51
mov word [esi + ecx*2], bx
inc ecx
cmp ecx, dword [edx + 4]
jb 0x4c2a40
mov eax, 1
mov ecx, dword [esp + 0x244]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.005aa453
add esp, 0x238
ret