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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x9c
push ebx
mov ebx, edx
mov eax, ecx
xor edx, edx
mov dword [esp + 0x34], ebx
xorps xmm0, xmm0
mov dword [esp + 0x40], eax
push esi
push edi
movlpd qword [esp + 0x70], xmm0
cmp word [ebp + 0x10], dx
je 0x4c106f
mov eax, dword [eax]
mov eax, dword [eax]
test byte [eax + 0x4c], 0x40
je 0x4c106f
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
movzx eax, word [ebx]
mov dword [esp + 0x88], eax
cmp eax, 0x3f
ja 0x4c1066
movzx ebx, ax
xor ecx, ecx
xor esi, esi
mov edi, dword [esp + 0x74]
mov eax, ebx
movlpd qword [esp + 0x80], xmm0
bts ecx, eax
movlpd qword [esp + 0x50], xmm0
cmp eax, 0x20
mov byte [esp + 0x1c], 1
mov dword [esp + 0x38], ebx
cmovae esi, ecx
mov dword [esp + 0x40], edx
xor ecx, esi
mov dword [esp + 0x10], edi
cmp eax, 0x40
mov eax, dword [ebp + 0xc]
cmovae esi, ecx
add ecx, 0xffffffff
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x1c]
adc esi, 0xffffffff
and eax, 0x803
mov dword [esp + 0x4c], esi
mov esi, dword [esp + 0x70]
neg eax
mov dword [esp + 0x14], esi
sbb eax, eax
neg eax
add eax, 0x182
movzx eax, ax
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x5c], eax
nop word [eax + eax]
mov eax, dword [esp + 0x4c]
cmp edi, eax
ja 0x4c185a
jb 0x4c1138
cmp esi, dword [esp + 0x7c]
jae 0x4c185e
movzx eax, word [ebp + 0x10]
cmp dword [esp + 0x40], eax
jg 0x4c1856
cmp dword [esp + 0x40], 0
jle 0x4c1167
mov ebx, dword [esp + 0x5c]
or ebx, dword [edx + 8]
mov dword [esp + 0x5c], ebx
mov ebx, dword [esp + 0x60]
or ebx, dword [edx + 0xc]
mov dword [esp + 0x60], ebx
mov ebx, dword [esp + 0x38]
mov edx, dword [esp + 0x40]
cmp edx, eax
jge 0x4c118c
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x18]
mov edx, dword [eax + edx*4]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x24], edx
test eax, 0x800
jne 0x4c183e
jmp 0x4c1196
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x24], edx
test dword [edx + 0x24], 0x400
jne 0x4c184c
and eax, 0x80
mov dword [esp + 0x80], eax
je 0x4c11b7
xor eax, eax
mov word [edx + 0x1e], ax
movzx eax, byte [edx + 0x10]
lea ecx, [eax + eax*8]
mov eax, dword [esp + 0x48]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*8 + 0x34]
mov dword [esp + 0x64], eax
xor eax, eax
mov dword [esp + 0x30], eax
test ebx, ebx
jle 0x4c133c
mov ebx, dword [esp + 0x3c]
add ebx, 4
mov dword [esp + 0x2c], ebx
xor ecx, ecx
xor edx, edx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
mov dword [esp + 0x50], ecx
cmovae edx, ecx
and ecx, esi
mov eax, edx
mov dword [esp + 0x34], edx
and eax, edi
or ecx, eax
jne 0x4c131c
mov esi, dword [ebx]
test esi, esi
je 0x4c1240
nop word [eax + eax]
mov eax, dword [esi + 4]
test eax, 0x41000
je 0x4c1240
test eax, 0x40000
je 0x4c1239
mov eax, dword [esi + 0x14]
mov esi, dword [eax + 4]
jmp 0x4c123c
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x4c1220
cmp byte [esi], 0xa4
jne 0x4c1318
mov edx, dword [esp + 0x64]
cmp dword [esi + 0x1c], edx
jne 0x4c1318
mov eax, dword [esp + 0x78]
mov ecx, dword [esp + 0x5c]
movzx eax, ax
not ecx
push 0
push eax
mov eax, dword [esp + 0x68]
not eax
push eax
movsx eax, word [esi + 0x20]
push ecx
mov ecx, dword [esp + 0x58]
push eax
lea ecx, [ecx + 0x50]
call fcn.004bd5c0
mov edi, eax
add esp, 0x14
test edi, edi
je 0x4c1314
movzx ebx, word [edi + 0xc]
cmp ebx, 1
jne 0x4c12b6
mov eax, dword [esp + 0x24]
xor ecx, ecx
movzx edx, word [eax + 0x28]
test edx, edx
jle 0x4c12b2
mov eax, dword [eax + 0x30]
cmp edi, dword [eax]
je 0x4c12b2
inc ecx
add eax, 4
cmp ecx, edx
jl 0x4c12a6
cmp ecx, edx
jge 0x4c1314
test bl, 0x82
je 0x4c12fa
cmp word [esi + 0x20], 0
jl 0x4c12fa
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x2c]
mov esi, dword [eax]
mov ecx, esi
mov edx, dword [edx]
call fcn.004805b0
mov ebx, eax
test ebx, ebx
jne 0x4c12e0
mov eax, dword [esi]
mov ebx, dword [eax + 8]
mov edx, dword [edi]
mov ecx, esi
call fcn.004807c0
test eax, eax
je 0x4c1314
mov edx, dword [eax]
mov ecx, dword [ebx]
call fcn.0044ee40
test eax, eax
jne 0x4c1314
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
or esi, dword [esp + 0x50]
or edi, dword [esp + 0x34]
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edi
jmp 0x4c131c
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x30]
add dword [esp + 0x2c], 0x14
inc eax
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x30], eax
cmp eax, dword [esp + 0x38]
jl 0x4c11e6
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x24]
test eax, 0x1000
jne 0x4c16f4
test eax, 0x100
je 0x4c1368
mov dword [esp + 0x58], 0
mov ecx, 1
mov dword [esp + 0x50], 0
jmp 0x4c13a8
mov edx, dword [edx + 0x20]
mov dword [esp + 0x58], edx
test edx, edx
je 0x4c1066
test byte [edx + 0x38], 4
jne 0x4c1066
cmp byte [edx + 0x36], 0
movzx ecx, word [edx + 0x32]
mov dword [esp + 0x50], ecx
movzx ecx, word [edx + 0x34]
je 0x4c139f
mov byte [esp + 0x1c], 1
test eax, 0x8000
je 0x4c13a4
mov byte [esp + 0x1c], 0
mov edx, dword [esp + 0x24]
xor al, al
xor esi, esi
mov byte [esp + 0x23], al
mov byte [esp + 0x22], al
mov dword [esp + 0x30], eax
movzx eax, cx
mov dword [esp + 0x28], esi
mov dword [esp + 0x70], eax
test eax, eax
jle 0x4c16f4
mov dword [esp + 0x34], esi
nop
movzx ebx, word [edx + 0x18]
mov byte [esp + 0x21], 1
cmp esi, ebx
jge 0x4c144a
movzx eax, word [edx + 0x2a]
cmp esi, eax
jl 0x4c144a
mov edi, dword [edx + 0x30]
mov eax, dword [esp + 0x78]
mov esi, dword [edi + esi*4]
movzx ecx, word [esi + 0xc]
and eax, ecx
test ax, ax
je 0x4c1418
mov eax, dword [esp + 0x1c]
test ecx, 0x180
mov ecx, 0
movzx eax, al
cmove ecx, eax
mov byte [esp + 0x1c], cl
jmp 0x4c16d7
test cl, 1
je 0x4c1446
mov ecx, dword [esp + 0x28]
mov esi, dword [esi]
lea edx, [ecx + 1]
cmp edx, ebx
jge 0x4c1446
inc ecx
lea ecx, [edi + ecx*4]
nop
mov eax, dword [ecx]
cmp dword [eax], esi
je 0x4c1440
inc edx
add ecx, 4
cmp edx, ebx
jl 0x4c1430
jmp 0x4c1446
xor al, al
mov byte [esp + 0x21], al
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x58]
test edi, edi
je 0x4c1477
mov eax, dword [edi + 4]
movsx edx, word [eax + esi*2]
mov eax, dword [edi + 0x1c]
mov dword [esp + 0x2c], edx
mov cl, byte [esi + eax]
mov eax, dword [edi + 0xc]
and cl, 1
mov byte [esp + 0x1b], cl
movsx eax, word [eax + 0x28]
cmp edx, eax
jne 0x4c1483
jmp 0x4c147c
mov byte [esp + 0x1b], 0
or edx, 0xffffffff
mov dword [esp + 0x2c], edx
cmp byte [esp + 0x1c], 0
je 0x4c14b0
test edx, edx
js 0x4c14b0
cmp esi, ebx
jl 0x4c14b0
mov eax, dword [edi + 0xc]
lea ecx, [edx + edx*4]
mov edx, dword [esp + 0x1c]
xor esi, esi
movzx edx, dl
mov eax, dword [eax + 4]
cmp byte [eax + ecx*4 + 0xc], 0
cmove edx, esi
mov dword [esp + 0x1c], edx
mov bh, byte [esp + 0x21]
xor edi, edi
test bh, bh
je 0x4c15d1
mov esi, dword [esp + 0x3c]
add esi, 4
mov dword [esp + 0x44], esi
nop dword [eax]
cmp edi, dword [esp + 0x38]
jge 0x4c15d1
xor edx, edx
xor ecx, ecx
mov eax, edi
bts edx, eax
cmp eax, 0x20
cmovae ecx, edx
xor edx, ecx
cmp eax, 0x40
cmovae ecx, edx
and edx, dword [esp + 0x14]
and ecx, dword [esp + 0x10]
or edx, ecx
jne 0x4c15c1
mov ecx, dword [esi]
test ecx, ecx
je 0x4c1530
nop word [eax + eax]
mov eax, dword [ecx + 4]
test eax, 0x41000
je 0x4c1530
test eax, 0x40000
je 0x4c1529
mov ecx, dword [ecx + 0x14]
mov ecx, dword [ecx + 4]
jmp 0x4c152c
mov ecx, dword [ecx + 0xc]
test ecx, ecx
jne 0x4c1510
mov al, byte [ebp + 0xc]
mov edx, dword [esp + 0x2c]
and al, 0xc0
neg al
sbb al, al
and bh, al
mov bl, bh
cmp edx, 0xffffffff
jl 0x4c155e
cmp byte [ecx], 0xa4
jne 0x4c15c1
mov eax, dword [esp + 0x64]
cmp dword [ecx + 0x1c], eax
jne 0x4c15c1
movsx eax, word [ecx + 0x20]
cmp eax, edx
jne 0x4c15c1
jmp 0x4c1581
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x34]
push dword [esp + 0x64]
mov eax, dword [eax + 0x28]
mov edx, dword [eax + edx + 4]
call fcn.00487b50
add esp, 4
test eax, eax
jne 0x4c15c1
mov edx, dword [esp + 0x2c]
cmp edx, 0xffffffff
je 0x4c15ff
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x44]
mov esi, dword [eax]
mov ecx, esi
mov edx, dword [edx]
call fcn.004805b0
test eax, eax
jne 0x4c15a2
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x58]
mov bh, bl
mov esi, dword [esp + 0x28]
mov edx, dword [ecx + 0x20]
mov ecx, dword [eax]
mov edx, dword [edx + esi*4]
call fcn.0044ee40
test eax, eax
je 0x4c1603
mov esi, dword [esp + 0x44]
add esi, 0x14
inc edi
mov dword [esp + 0x44], esi
test bh, bh
jne 0x4c14d0
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x4c15e4
mov eax, dword [esp + 0x50]
movzx eax, ax
cmp ecx, eax
jge 0x4c15e9
mov byte [esp + 0x1c], 0
mov eax, dword [esp + 0x30]
test al, al
je 0x4c16f4
mov byte [esp + 0x1c], 1
jmp 0x4c16ff
mov esi, dword [esp + 0x28]
cmp word [esp + 0x80], 0
mov ebx, dword [esp + 0x24]
je 0x4c1619
lea eax, [esi + 1]
mov word [ebx + 0x1e], ax
test byte [ebp + 0xc], 0x40
jne 0x4c167d
cmp byte [esp + 0x23], 0
lea eax, [edi + edi*4]
mov ecx, dword [esp + 0x3c]
je 0x4c1646
mov al, byte [ecx + eax*4 + 0xc]
mov cl, byte [esp + 0x1b]
and al, 1
xor cl, byte [esp + 0x22]
cmp cl, al
sete al
test al, al
je 0x4c15d1
jmp 0x4c167d
mov dl, byte [ecx + eax*4 + 0xc]
and dl, 1
xor dl, byte [esp + 0x1b]
mov byte [esp + 0x22], dl
je 0x4c1678
mov eax, dword [esp + 0x40]
xor ecx, ecx
bts ecx, eax
xor edx, edx
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
mov eax, dword [ebp + 0x18]
cmovae edx, ecx
or dword [eax], ecx
or dword [eax + 4], edx
mov byte [esp + 0x23], 1
mov ecx, dword [esp + 0x3c]
lea eax, [edi + edi*4]
test byte [ecx + eax*4 + 0xc], 2
je 0x4c169e
movzx eax, word [ebx + 0x18]
cmp esi, eax
jne 0x4c15d1
or dword [ebx + 0x24], 0x80000
cmp dword [esp + 0x2c], 0xffffffff
mov eax, 1
mov edx, dword [esp + 0x30]
movzx edx, dl
cmove edx, eax
xor eax, eax
xor ecx, ecx
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x24]
bts eax, edi
cmp edi, 0x20
cmovae ecx, eax
xor eax, ecx
cmp edi, 0x40
cmovae ecx, eax
or dword [esp + 0x14], eax
or dword [esp + 0x10], ecx
mov esi, dword [esp + 0x28]
add dword [esp + 0x34], 0x14
inc esi
mov dword [esp + 0x28], esi
cmp esi, dword [esp + 0x70]
jl 0x4c13d0
jmp 0x4c15e9
cmp byte [esp + 0x1c], 0
je 0x4c182a
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x68]
mov ebx, dword [esp + 0x38]
or eax, dword [edx + 8]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x6c]
or eax, dword [edx + 0xc]
mov dword [esp + 0x6c], eax
xor eax, eax
mov dword [esp + 0x44], eax
test ebx, ebx
jle 0x4c1832
mov ebx, dword [esp + 0x3c]
mov edx, dword [esp + 0x10]
add ebx, 4
mov dword [esp + 0x30], ebx
nop word [eax + eax]
xor esi, esi
xor edi, edi
bts esi, eax
cmp eax, 0x20
cmovae edi, esi
xor esi, edi
cmp eax, 0x40
mov ecx, esi
cmovae edi, esi
and ecx, dword [esp + 0x14]
mov eax, edi
and eax, edx
or ecx, eax
jne 0x4c180e
mov ebx, dword [ebx]
test ebx, ebx
je 0x4c1782
mov ecx, dword [esp + 0x48]
mov edx, ebx
lea ecx, [ecx + 0x1e8]
call fcn.004bcd40
mov ecx, edx
jmp 0x4c1793
xorps xmm0, xmm0
movlpd qword [esp + 0x70], xmm0
mov ecx, dword [esp + 0x74]
mov eax, dword [esp + 0x70]
mov dword [esp + 0x50], eax
or eax, ecx
mov dword [esp + 0x34], ecx
jne 0x4c17ea
mov dword [esp + 0x90], 0x481c20
mov eax, 1
mov word [esp + 0xa0], ax
mov dword [esp + 0x94], 0x481ab0
mov dword [esp + 0xa4], 0
test ebx, ebx
je 0x4c17ea
mov edx, ebx
lea ecx, [esp + 0x8c]
call fcn.0047daf0
cmp word [esp + 0xa0], 0
je 0x4c180a
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
not ecx
and ecx, dword [esp + 0x50]
not eax
and eax, dword [esp + 0x34]
or ecx, eax
jne 0x4c180a
or dword [esp + 0x14], esi
or dword [esp + 0x10], edi
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x44]
add dword [esp + 0x30], 0x14
inc eax
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x44], eax
cmp eax, dword [esp + 0x38]
jl 0x4c1740
mov ebx, dword [esp + 0x38]
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x1c]
inc dword [esp + 0x40]
test cl, cl
jne 0x4c1120
jmp 0x4c1856
cmp byte [edx + 0x1d], 0
je 0x4c1856
test al, al
jns 0x4c1864
mov eax, dword [esp + 0x4c]
cmp esi, dword [esp + 0x7c]
jne 0x4c1872
cmp edi, eax
jne 0x4c1872
mov al, byte [esp + 0x88]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test cl, cl
jne 0x4c18c5
dec ebx
test ebx, ebx
jle 0x4c1066
nop
xor ecx, ecx
xor edx, edx
mov eax, ebx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
cmovae edx, ecx
add ecx, 0xffffffff
mov eax, ecx
adc edx, 0xffffffff
and eax, esi
mov esi, edx
and esi, edi
cmp eax, ecx
jne 0x4c18ad
cmp esi, edx
je 0x4c18bc
dec ebx
test ebx, ebx
jle 0x4c1066
mov esi, dword [esp + 0x14]
jmp 0x4c1880
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
or al, 0xff
pop ebx
mov esp, ebp
pop ebp
ret