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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
mov eax, dword [0x577018]
xor eax, esp
mov dword [esp + 0xb0], eax
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
push ebx
push esi
push edi
mov edi, ecx
mov dword [esp + 0x8c], eax
mov eax, dword [ebp + 0x14]
xor ecx, ecx
mov dword [esp + 0x94], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x64], edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x98], eax
movlpd qword [esp + 0x78], xmm0
cmp word [ebp + 0x10], cx
je 0x4a62b4
mov eax, dword [edi]
mov eax, dword [eax]
test byte [eax + 0x4c], 0x40
jne 0x4a6b54
movzx eax, word [edx]
mov dword [esp + 0x9c], eax
cmp eax, 0x3f
ja 0x4a6b54
movzx ebx, ax
xor edx, edx
xor esi, esi
movlpd qword [esp + 0x50], xmm0
mov eax, ebx
movlpd qword [esp + 0x48], xmm0
bts edx, eax
mov byte [esp + 0x28], 1
cmp eax, 0x20
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x40], ecx
cmovae esi, edx
xor edx, esi
cmp eax, 0x40
mov eax, dword [ebp + 0xc]
cmovae esi, edx
add edx, 0xffffffff
mov dword [esp + 0x84], edx
mov edx, dword [esp + 0x78]
adc esi, 0xffffffff
and eax, 0x800
mov dword [esp + 0x80], esi
mov esi, dword [esp + 0x7c]
mov dword [esp + 0x90], eax
mov eax, ecx
setne al
mov dword [esp + 0x14], esi
add eax, 0x182
mov dword [esp + 0x20], edx
movzx eax, ax
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x80]
cmp esi, eax
ja 0x4a6ada
jb 0x4a637f
cmp edx, dword [esp + 0x84]
jae 0x4a6ae1
movzx eax, word [ebp + 0x10]
cmp dword [esp + 0x40], eax
jg 0x4a6b09
cmp dword [esp + 0x40], 0
jle 0x4a63ae
mov edi, dword [esp + 0x68]
or edi, dword [ecx + 8]
mov dword [esp + 0x68], edi
mov edi, dword [esp + 0x74]
or edi, dword [ecx + 0xc]
mov dword [esp + 0x74], edi
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x40]
cmp ecx, eax
jge 0x4a63d8
cmp word [esp + 0x90], 0
mov eax, dword [esp + 0x8c]
mov eax, dword [eax + 0x18]
mov ecx, dword [eax + ecx*4]
mov dword [esp + 0x24], ecx
jne 0x4a6ac4
jmp 0x4a63e3
mov ecx, dword [esp + 0x94]
mov dword [esp + 0x24], ecx
test dword [ecx + 0x24], 0x400
jne 0x4a6b03
xor eax, eax
mov word [ecx + 0x1e], ax
movzx eax, byte [ecx + 0x10]
lea ecx, [eax + eax*8]
mov eax, dword [edi + 4]
mov edi, dword [eax + ecx*8 + 0x34]
xor eax, eax
mov dword [esp + 0x38], edi
mov dword [esp + 0x48], eax
test ebx, ebx
je 0x4a657d
mov ebx, dword [esp + 0x64]
add ebx, 4
mov dword [esp + 0x1c], 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, dword [esp + 0x20]
mov eax, edx
mov dword [esp + 0x30], edx
and eax, esi
or ecx, eax
jne 0x4a6561
mov esi, dword [ebx]
test esi, esi
je 0x4a6474
mov eax, dword [esi + 4]
test eax, 0x1000
je 0x4a6474
test eax, 0x40000
je 0x4a646d
mov eax, dword [esi + 0x14]
mov esi, dword [eax + 4]
jmp 0x4a6470
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x4a6454
cmp byte [esi], 0x9e
jne 0x4a655d
cmp dword [esi + 0x1c], edi
jne 0x4a655d
mov eax, dword [esp + 0x88]
mov edx, edi
mov ecx, dword [esp + 0x68]
movzx eax, ax
not ecx
push 0
push eax
mov eax, dword [esp + 0x7c]
not eax
push eax
movsx eax, word [esi + 0x20]
push ecx
mov ecx, dword [esp + 0x3c]
push eax
add ecx, 0x50
call fcn.004a1d00
mov edi, eax
add esp, 0x14
test edi, edi
je 0x4a6559
movzx ebx, word [edi + 0xc]
cmp ebx, 1
jne 0x4a64f0
mov eax, dword [esp + 0x24]
xor ecx, ecx
movzx edx, word [eax + 0x28]
test edx, edx
je 0x4a64ec
mov eax, dword [eax + 0x30]
nop dword [eax + eax]
cmp edi, dword [eax]
je 0x4a64ec
inc ecx
add eax, 4
cmp ecx, edx
jl 0x4a64e0
cmp ecx, edx
jge 0x4a6559
test bl, 0x82
je 0x4a653b
cmp word [esi + 0x20], 0
jl 0x4a653b
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x1c]
mov ebx, dword [edi]
mov esi, dword [eax]
mov ecx, esi
mov edx, dword [edx]
call fcn.0045c7c0
mov edi, eax
test edi, edi
jne 0x4a651c
mov eax, dword [esi]
mov edi, dword [eax + 8]
mov edx, ebx
mov ecx, esi
call fcn.0045c7c0
test eax, eax
jne 0x4a652e
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov edx, dword [eax]
mov ecx, dword [edi]
call fcn.00427e20
test eax, eax
jne 0x4a6559
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
or edx, dword [esp + 0x50]
or esi, dword [esp + 0x30]
mov edi, dword [esp + 0x38]
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], esi
jmp 0x4a6561
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x48]
add dword [esp + 0x1c], 0x18
inc eax
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x48], eax
cmp eax, dword [esp + 0x3c]
jl 0x4a6421
mov esi, dword [esp + 0x24]
mov eax, dword [esi + 0x24]
test eax, 0x1000
jne 0x4a6976
test eax, 0x100
je 0x4a65ad
mov dword [esp + 0x5c], 0
mov eax, 1
mov dword [esp + 0x50], 0
jmp 0x4a65db
mov ecx, dword [esi + 0x20]
mov dword [esp + 0x5c], ecx
test ecx, ecx
je 0x4a6b54
test byte [ecx + 0x38], 4
jne 0x4a6b54
movzx eax, word [ecx + 0x32]
cmp byte [ecx + 0x36], 0
mov dword [esp + 0x50], eax
movzx eax, word [ecx + 0x34]
setne byte [esp + 0x28]
xor dl, dl
movzx eax, ax
mov byte [esp + 0x1b], dl
xor cl, cl
xor edx, edx
mov byte [esp + 0x13], 0
mov dword [esp + 0x48], ecx
mov dword [esp + 0x1c], edx
mov dword [esp + 0x78], eax
test eax, eax
je 0x4a6976
mov dword [esp + 0x30], edx
movzx edi, word [esi + 0x18]
mov bh, 1
mov byte [esp + 0x12], bh
cmp edx, edi
jge 0x4a6686
movzx eax, word [esi + 0x2a]
cmp edx, eax
jl 0x4a6686
mov ebx, dword [esi + 0x30]
mov eax, dword [esp + 0x88]
mov esi, dword [ebx + edx*4]
movzx ecx, word [esi + 0xc]
and eax, ecx
test ax, ax
je 0x4a6655
mov eax, dword [esp + 0x28]
test ecx, 0x100
mov esi, dword [esp + 0x24]
mov ecx, 0
movzx eax, al
cmove ecx, eax
mov byte [esp + 0x28], cl
jmp 0x4a695d
test cl, 1
je 0x4a66b6
mov esi, dword [esi]
inc edx
cmp edx, edi
jge 0x4a667e
mov ecx, dword [esp + 0x1c]
inc ecx
lea ecx, [ebx + ecx*4]
nop dword [eax]
mov eax, dword [ecx]
cmp dword [eax], esi
je 0x4a66b2
inc edx
add ecx, 4
cmp edx, edi
jl 0x4a6670
mov bh, byte [esp + 0x12]
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x5c]
test esi, esi
je 0x4a66bc
mov eax, dword [esi + 4]
movsx ecx, word [eax + edx*2]
mov eax, dword [esi + 0x1c]
mov bl, byte [edx + eax]
mov eax, dword [esi + 0xc]
mov byte [esp + 0x12], bl
movsx eax, word [eax + 0x28]
cmp ecx, eax
mov eax, 0xffffffff
cmove ecx, eax
jmp 0x4a66c4
xor bh, bh
jmp 0x4a6682
mov bh, byte [esp + 0x12]
jmp 0x4a6686
or ecx, 0xffffffff
mov byte [esp + 0x12], 0
cmp byte [esp + 0x28], 0
mov dword [esp + 0x60], ecx
je 0x4a66f4
test ecx, ecx
js 0x4a66f4
cmp edx, edi
jl 0x4a66f4
mov eax, dword [esi + 0xc]
add ecx, ecx
mov edx, dword [esp + 0x28]
xor esi, esi
movzx edx, dl
mov eax, dword [eax + 4]
cmp byte [eax + ecx*8 + 0xc], 0
cmove edx, esi
mov dword [esp + 0x28], edx
xor edi, edi
test bh, bh
je 0x4a686b
mov esi, dword [esp + 0x64]
add esi, 4
mov dword [esp + 0x44], esi
nop dword [eax]
cmp edi, dword [esp + 0x3c]
jge 0x4a686b
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 + 0x20]
and ecx, dword [esp + 0x14]
or edx, ecx
jne 0x4a685b
mov edx, dword [esi]
test edx, edx
je 0x4a6770
nop word [eax + eax]
mov eax, dword [edx + 4]
test eax, 0x1000
je 0x4a6770
test eax, 0x40000
je 0x4a6769
mov edx, dword [edx + 0x14]
mov edx, dword [edx + 4]
jmp 0x4a676c
mov edx, dword [edx + 0xc]
test edx, edx
jne 0x4a6750
mov al, byte [ebp + 0xc]
mov ecx, dword [esp + 0x60]
and al, 0xc0
neg al
sbb al, al
and bh, al
mov bl, bh
cmp ecx, 0xffffffff
jl 0x4a67aa
cmp byte [edx], 0x9e
jne 0x4a685b
mov eax, dword [esp + 0x38]
cmp dword [edx + 0x1c], eax
jne 0x4a685b
movsx eax, word [edx + 0x20]
cmp eax, ecx
jne 0x4a685b
jmp 0x4a681b
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x30]
mov eax, dword [eax + 0x28]
mov ecx, dword [eax + ecx + 4]
test ecx, ecx
je 0x4a67e0
nop dword [eax]
mov eax, dword [ecx + 4]
test eax, 0x1000
je 0x4a67e0
test eax, 0x40000
je 0x4a67d9
mov eax, dword [ecx + 0x14]
mov ecx, dword [eax + 4]
jmp 0x4a67dc
mov ecx, dword [ecx + 0xc]
test ecx, ecx
jne 0x4a67c0
test edx, edx
je 0x4a6804
mov eax, dword [edx + 4]
test eax, 0x1000
je 0x4a6804
test eax, 0x40000
je 0x4a67fd
mov eax, dword [edx + 0x14]
mov edx, dword [eax + 4]
jmp 0x4a6800
mov edx, dword [edx + 0xc]
test edx, edx
jne 0x4a67e4
push dword [esp + 0x38]
push ecx
xor ecx, ecx
call fcn.00464300
add esp, 8
test eax, eax
jne 0x4a685b
mov ecx, dword [esp + 0x60]
cmp ecx, 0xffffffff
je 0x4a689c
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x44]
mov esi, dword [eax]
mov ecx, esi
mov edx, dword [edx]
call fcn.0045c7c0
test eax, eax
jne 0x4a683c
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov ecx, dword [esp + 0x5c]
mov bh, bl
mov edx, dword [ecx + 0x20]
mov ecx, dword [esp + 0x1c]
mov edx, dword [edx + ecx*4]
mov ecx, dword [eax]
call fcn.00427e20
test eax, eax
je 0x4a689c
mov esi, dword [esp + 0x44]
add esi, 0x18
inc edi
mov dword [esp + 0x44], esi
test bh, bh
jne 0x4a6710
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
test ecx, ecx
je 0x4a6882
mov eax, dword [esp + 0x50]
movzx eax, ax
cmp ecx, eax
jge 0x4a6887
mov byte [esp + 0x28], 0
cmp byte [esp + 0x48], 0
je 0x4a6976
mov byte [esp + 0x28], 1
jmp 0x4a6981
test byte [ebp + 0xc], 0x40
mov edx, dword [esp + 0x1c]
mov esi, dword [esp + 0x24]
mov byte [esp + 0x37], 1
lea eax, [edx + 1]
mov word [esi + 0x1e], ax
jne 0x4a6928
cmp byte [esp + 0x13], 0
lea eax, [edi + edi*2]
mov ecx, dword [esp + 0x64]
mov dl, byte [ecx + eax*8 + 0x10]
je 0x4a68f0
mov bh, byte [esp + 0x1b]
xor ecx, ecx
mov bl, byte [esp + 0x12]
movzx eax, byte [esp + 0x37]
xor bl, bh
cmp bl, dl
mov byte [esp + 0x1b], bh
mov bl, byte [esp + 0x13]
cmove ecx, eax
mov byte [esp + 0x13], bl
test cl, cl
je 0x4a686f
jmp 0x4a6924
xor dl, byte [esp + 0x12]
mov byte [esp + 0x1b], dl
je 0x4a691f
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 [esp + 0x98]
cmovae edx, ecx
or dword [eax], ecx
or dword [eax + 4], edx
mov byte [esp + 0x13], 1
mov edx, dword [esp + 0x1c]
cmp dword [esp + 0x60], 0xffffffff
mov ecx, 1
mov eax, dword [esp + 0x48]
movzx eax, al
cmove eax, ecx
xor ecx, ecx
mov dword [esp + 0x48], eax
xor eax, eax
bts eax, edi
cmp edi, 0x20
cmovae ecx, eax
xor eax, ecx
cmp edi, 0x40
cmovae ecx, eax
or dword [esp + 0x20], eax
or dword [esp + 0x14], ecx
add dword [esp + 0x30], 0x18
inc edx
mov dword [esp + 0x1c], edx
cmp edx, dword [esp + 0x78]
jl 0x4a6605
jmp 0x4a6887
cmp byte [esp + 0x28], 0
je 0x4a6ab0
mov eax, dword [esp + 0x6c]
or eax, dword [esi + 8]
mov ebx, dword [esp + 0x3c]
mov edx, dword [esp + 0x20]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x70]
or eax, dword [esi + 0xc]
mov dword [esp + 0x70], eax
xor eax, eax
mov dword [esp + 0x44], eax
test ebx, ebx
je 0x4a6ab8
mov ebx, dword [esp + 0x64]
add ebx, 4
mov dword [esp + 0x48], ebx
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, edx
mov eax, edi
and eax, dword [esp + 0x14]
or ecx, eax
jne 0x4a6a8a
mov ebx, dword [ebx]
test ebx, ebx
je 0x4a69fa
mov ecx, dword [esp + 0x2c]
mov edx, ebx
lea ecx, [ecx + 0x1e8]
call fcn.004a1430
mov ecx, edx
jmp 0x4a6a0b
xorps xmm0, xmm0
movlpd qword [esp + 0x78], xmm0
mov ecx, dword [esp + 0x7c]
mov eax, dword [esp + 0x78]
mov dword [esp + 0x50], eax
or eax, ecx
mov dword [esp + 0x30], ecx
jne 0x4a6a58
mov byte [esp + 0xb4], 1
mov dword [esp + 0xa4], fcn.0045f040
mov dword [esp + 0xa8], 0x45efe0
mov dword [esp + 0xb8], eax
test ebx, ebx
je 0x4a6a58
mov edx, ebx
lea ecx, [esp + 0xa0]
call fcn.00459a40
cmp byte [esp + 0xb4], 0
je 0x4a6a86
mov ecx, dword [esp + 0x6c]
mov eax, dword [esp + 0x70]
not ecx
and ecx, dword [esp + 0x50]
not eax
and eax, dword [esp + 0x30]
or ecx, eax
mov edx, dword [esp + 0x20]
jne 0x4a6a8a
or edx, esi
mov esi, dword [esp + 0x14]
or esi, edi
mov dword [esp + 0x20], edx
mov dword [esp + 0x14], esi
jmp 0x4a6a8e
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x44]
add dword [esp + 0x48], 0x18
inc eax
mov ebx, dword [esp + 0x48]
mov dword [esp + 0x44], eax
cmp eax, dword [esp + 0x3c]
jl 0x4a69b8
mov ebx, dword [esp + 0x3c]
jmp 0x4a6abc
mov edx, dword [esp + 0x20]
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x24]
mov edi, dword [esp + 0x2c]
inc dword [esp + 0x40]
cmp byte [esp + 0x28], 0
jne 0x4a6361
mov eax, dword [esp + 0x80]
cmp edx, dword [esp + 0x84]
jne 0x4a6b09
cmp esi, eax
jne 0x4a6b09
mov al, byte [esp + 0x9c]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.00517154
mov esp, ebp
pop ebp
ret
cmp byte [ecx + 0x1d], 0
jne 0x4a6ae7
cmp byte [esp + 0x28], 0
jne 0x4a6b82
dec ebx
test ebx, ebx
jle 0x4a6b54
mov edi, dword [esp + 0x14]
nop dword [eax]
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, dword [esp + 0x20]
mov esi, edx
and esi, edi
cmp eax, ecx
jne 0x4a6b4f
cmp esi, edx
je 0x4a6b6b
dec ebx
test ebx, ebx
jg 0x4a6b20
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.00517154
mov esp, ebp
pop ebp
ret
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.00517154
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xbc]
or al, 0xff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00517154
mov esp, ebp
pop ebp
ret