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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb4
mov eax, dword [0x513040]
xor eax, esp
mov dword [esp + 0xb0], eax
mov eax, ecx
mov dword [esp + 0x34], edx
mov ecx, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [esp + 0x88], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x38], eax
mov eax, dword [eax]
mov dword [esp + 0x8c], ecx
mov ecx, dword [ebp + 0x18]
push ebx
mov eax, dword [eax]
mov dword [esp + 0x78], ecx
xor ecx, ecx
push esi
push edi
mov dword [esp + 0x9c], eax
movlpd qword [esp + 0x10], xmm0
cmp word [ebp + 0x10], cx
je 0x4d4888
test byte [eax + 0x50], 0x40
jne 0x4d52a5
movzx eax, word [edx]
mov dword [esp + 0x88], eax
cmp eax, 0x3f
ja 0x4d52a5
movzx edx, ax
xor esi, esi
xor edi, edi
movlpd qword [esp + 0x50], xmm0
mov eax, edx
movlpd qword [esp + 0x70], xmm0
bts esi, eax
mov dword [esp + 0x34], edx
cmp eax, 0x20
mov dword [esp + 0x38], ecx
mov ebx, 1
cmovae edi, esi
mov dword [esp + 0x1c], ebx
xor esi, edi
cmp eax, 0x40
mov eax, dword [ebp + 0xc]
cmovae edi, esi
add esi, 0xffffffff
mov dword [esp + 0x7c], esi
mov esi, dword [esp + 0x14]
adc edi, 0xffffffff
and eax, 0x803
mov dword [esp + 0x48], edi
neg eax
sbb eax, eax
neg eax
add eax, 0x182
movzx eax, ax
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x74]
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0x68], eax
cmp esi, edi
ja 0x4d520f
mov edi, dword [esp + 0x10]
jb 0x4d4939
cmp edi, dword [esp + 0x7c]
jae 0x4d520b
movzx eax, word [ebp + 0x10]
cmp dword [esp + 0x38], eax
jg 0x4d520b
cmp dword [esp + 0x38], 0
jle 0x4d4968
mov edx, dword [esp + 0x68]
or edx, dword [ecx + 8]
mov dword [esp + 0x68], edx
mov edx, dword [esp + 0x6c]
or edx, dword [ecx + 0xc]
mov dword [esp + 0x6c], edx
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
cmp ecx, eax
jge 0x4d4991
mov eax, dword [esp + 0x94]
mov eax, dword [eax + 0x18]
mov ecx, dword [eax + ecx*4]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x30], ecx
test eax, 0x800
jne 0x4d51e7
jmp 0x4d499f
mov ecx, dword [esp + 0x98]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x30], ecx
test dword [ecx + 0x2c], 0x400
jne 0x4d51f9
and eax, 0x80
mov dword [esp + 0x70], eax
je 0x4d49bd
xor eax, eax
mov word [ecx + 0x1e], ax
movzx eax, byte [ecx + 0x10]
lea ecx, [eax + eax*8]
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 4]
mov edx, dword [eax + ecx*8 + 0x34]
xor eax, eax
mov dword [esp + 0x20], edx
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x34], eax
jbe 0x4d4bbd
mov ebx, dword [esp + 0x40]
add ebx, 8
mov dword [esp + 0x28], ebx
nop
xor ecx, ecx
xor edx, edx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
mov dword [esp + 0x3c], ecx
cmovae edx, ecx
and ecx, edi
mov eax, edx
mov dword [esp + 0x4c], edx
and eax, esi
or ecx, eax
jne 0x4d4b99
mov esi, dword [ebx]
test esi, esi
je 0x4d4b95
mov eax, dword [esi + 4]
test eax, 0x82000
je 0x4d4a52
test eax, 0x80000
je 0x4d4a3e
mov eax, dword [esi + 0x14]
mov esi, dword [eax + 8]
jmp 0x4d4a46
cmp byte [esi], 0x72
jne 0x4d4a4a
mov esi, dword [esi + 0xc]
test esi, esi
jne 0x4d4a25
test esi, esi
je 0x4d4b95
mov al, byte [esi]
cmp al, 0xa8
je 0x4d4a60
cmp al, 0xaa
jne 0x4d4b95
mov edx, dword [esp + 0x20]
cmp dword [esi + 0x1c], edx
jne 0x4d4c25
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x68]
movzx eax, ax
not ecx
push 0
push eax
mov eax, dword [esp + 0x74]
not eax
push eax
movsx eax, word [esi + 0x20]
push ecx
mov ecx, dword [esp + 0x54]
push eax
lea ecx, [ecx + 0x50]
call fcn.004cea60
mov edi, eax
add esp, 0x14
test edi, edi
je 0x4d4b91
movzx ebx, word [edi + 0xc]
cmp ebx, 1
jne 0x4d4ad4
mov eax, dword [esp + 0x30]
xor ecx, ecx
movzx edx, word [eax + 0x30]
test edx, edx
je 0x4d4acc
mov eax, dword [eax + 0x38]
cmp edi, dword [eax]
je 0x4d4acc
inc ecx
add eax, 4
cmp ecx, edx
jl 0x4d4ac0
cmp ecx, edx
jge 0x4d4b91
test bl, 0x82
je 0x4d4b62
cmp word [esi + 0x20], 0
jl 0x4d4b62
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x28]
mov esi, dword [eax]
mov ecx, esi
mov edx, dword [edx]
call fcn.00471190
mov ebx, eax
test ebx, ebx
jne 0x4d4b06
mov eax, dword [esi]
mov ebx, dword [eax + 8]
mov eax, dword [edi]
test dword [eax + 4], 0x400
je 0x4d4b19
mov edi, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
jmp 0x4d4b1f
mov edi, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
test dword [edx + 4], 0x200
jne 0x4d4b42
test edi, edi
je 0x4d4b35
test dword [edi + 4], 0x200
jne 0x4d4b40
mov ecx, esi
call fcn.00471190
test eax, eax
jne 0x4d4b4d
mov edx, edi
mov ecx, esi
call fcn.00471190
test eax, eax
je 0x4d4b91
mov esi, dword [eax]
mov edx, dword [ebx]
sub esi, edx
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x4d4b7c
test ecx, ecx
jne 0x4d4b8e
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
or edi, dword [esp + 0x3c]
or esi, dword [esp + 0x4c]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], esi
jmp 0x4d4b99
movzx eax, byte [eax + 0x506c98]
movzx ecx, byte [ecx + 0x506c98]
sub ecx, eax
jne 0x4d4b91
inc edx
jmp 0x4d4b53
mov edi, dword [esp + 0x10]
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
add dword [esp + 0x28], 0x14
inc eax
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x2c], eax
cmp eax, dword [esp + 0x34]
jl 0x4d49f0
mov ebx, dword [esp + 0x1c]
mov esi, dword [esp + 0x30]
mov eax, dword [esi + 0x2c]
test eax, 0x1000
jne 0x4d505f
test eax, 0x100
je 0x4d4c45
cmp dword [esi + 0x24], 0
je 0x4d4c2e
mov eax, dword [esp + 0x9c]
test dword [eax + 0x50], 0x10000000
jne 0x4d4c2e
mov ecx, dword [esp + 0x44]
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x84]
push dword [esp + 0x48]
push edx
push dword [esp + 0x48]
mov edx, esi
call fcn.004d46b0
add esp, 0x14
test eax, eax
je 0x4d4c2e
xor ecx, ecx
xor bl, bl
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x3c], ecx
jmp 0x4d4c81
mov esi, dword [esp + 0x14]
jmp 0x4d4b9d
mov ecx, 1
mov dword [esp + 0x58], 0
mov dword [esp + 0x3c], 0
jmp 0x4d4c81
mov edx, dword [esi + 0x20]
mov dword [esp + 0x58], edx
test edx, edx
je 0x4d52a5
test byte [edx + 0x38], 4
jne 0x4d52a5
cmp byte [edx + 0x36], 0
movzx ecx, word [edx + 0x32]
mov dword [esp + 0x3c], ecx
movzx ecx, word [edx + 0x34]
je 0x4d4c7b
test eax, 0x8000
jne 0x4d4c7b
mov bl, 1
jmp 0x4d4c7d
xor bl, bl
mov dword [esp + 0x1c], ebx
xor al, al
xor dl, dl
mov byte [esp + 0x1b], al
mov dword [esp + 0x2c], eax
movzx eax, cx
mov byte [esp + 0x1a], dl
xor edx, edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x50], eax
test eax, eax
je 0x4d505f
mov dword [esp + 0x4c], edx
nop word [eax + eax]
movzx ebx, word [esi + 0x18]
mov byte [esp + 0xf], 1
cmp edx, ebx
jge 0x4d4d2a
movzx eax, word [esi + 0x32]
cmp edx, eax
jl 0x4d4d2a
mov edi, dword [esi + 0x38]
mov eax, dword [esp + 0x84]
mov esi, dword [edi + edx*4]
movzx ecx, word [esi + 0xc]
and eax, ecx
test ax, ax
je 0x4d4cfb
mov eax, dword [esp + 0x1c]
test ecx, 0x180
mov ecx, 0
movzx eax, al
cmove ecx, eax
mov byte [esp + 0x1c], cl
jmp 0x4d503e
test cl, 1
je 0x4d4d2a
mov esi, dword [esi]
inc edx
cmp edx, ebx
jge 0x4d4d26
mov ecx, dword [esp + 0x24]
inc ecx
lea ecx, [edi + ecx*4]
nop
mov eax, dword [ecx]
cmp dword [eax], esi
je 0x4d4d20
inc edx
add ecx, 4
cmp edx, ebx
jl 0x4d4d10
jmp 0x4d4d26
xor al, al
mov byte [esp + 0xf], al
mov edx, dword [esp + 0x24]
mov esi, dword [esp + 0x58]
test esi, esi
je 0x4d4d56
mov eax, dword [esi + 4]
movsx ecx, word [eax + edx*2]
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x28], ecx
mov al, byte [edx + eax]
and al, 1
mov byte [esp + 0x19], al
mov eax, dword [esi + 0xc]
movsx eax, word [eax + 0x20]
cmp ecx, eax
jne 0x4d4d62
jmp 0x4d4d5b
mov byte [esp + 0x19], 0
or ecx, 0xffffffff
mov dword [esp + 0x28], ecx
mov eax, dword [esp + 0x1c]
test al, al
je 0x4d4d97
test ecx, ecx
js 0x4d4d88
cmp edx, ebx
jl 0x4d4d97
mov eax, dword [esi + 0xc]
add ecx, ecx
mov eax, dword [eax + 4]
test byte [eax + ecx*8 + 4], 0xf
jne 0x4d4d97
mov byte [esp + 0x1c], 0
jmp 0x4d4d97
xor edx, edx
movzx eax, al
cmp ecx, 0xfffffffe
cmove eax, edx
mov dword [esp + 0x1c], eax
mov bh, byte [esp + 0xf]
xor edi, edi
test bh, bh
je 0x4d4f09
mov eax, dword [esp + 0x40]
lea esi, [eax + 8]
mov dword [esp + 0x64], esi
cmp edi, dword [esp + 0x34]
jge 0x4d4f09
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 + 0x10]
and ecx, dword [esp + 0x14]
or edx, ecx
jne 0x4d4ef9
mov edx, dword [esi]
test edx, edx
je 0x4d4ef9
nop dword [eax + eax]
mov eax, dword [edx + 4]
test eax, 0x82000
je 0x4d4e1d
test eax, 0x80000
je 0x4d4e09
mov edx, dword [edx + 0x14]
mov edx, dword [edx + 8]
jmp 0x4d4e11
cmp byte [edx], 0x72
jne 0x4d4e15
mov edx, dword [edx + 0xc]
test edx, edx
jne 0x4d4df0
test edx, edx
je 0x4d4ef9
mov al, byte [ebp + 0xc]
mov ecx, dword [esp + 0x28]
and al, 0xc0
neg al
sbb al, al
and bh, al
mov bl, bh
cmp ecx, 0xffffffff
jl 0x4d4e5e
mov al, byte [edx]
cmp al, 0xa8
je 0x4d4e41
cmp al, 0xaa
jne 0x4d4ef9
mov eax, dword [esp + 0x20]
mov bh, bl
cmp dword [edx + 0x1c], eax
jne 0x4d4ef9
movsx eax, word [edx + 0x20]
cmp eax, ecx
jne 0x4d4ef9
jmp 0x4d4ea8
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x4c]
mov eax, dword [eax + 0x28]
mov eax, dword [eax + ecx + 8]
test eax, eax
je 0x4d4e81
test dword [eax + 4], 0x2000
je 0x4d4e81
mov eax, dword [eax + 0xc]
test eax, eax
jne 0x4d4e71
test dword [edx + 4], 0x2000
je 0x4d4e91
mov edx, dword [edx + 0xc]
test edx, edx
jne 0x4d4e81
push dword [esp + 0x20]
xor ecx, ecx
push eax
call fcn.0047ba00
add esp, 8
test eax, eax
jne 0x4d4ef9
mov ecx, dword [esp + 0x28]
cmp ecx, 0xffffffff
je 0x4d4f4e
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x64]
mov esi, dword [eax]
mov ecx, esi
mov edx, dword [edx]
call fcn.00471190
test eax, eax
jne 0x4d4ecd
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov edx, dword [eax]
mov eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x24]
mov eax, dword [eax + 0x20]
mov esi, dword [eax + ecx*4]
sub esi, edx
nop
movzx ecx, byte [edx]
movzx eax, byte [esi + edx]
cmp ecx, eax
jne 0x4d4f39
test ecx, ecx
jne 0x4d4f4b
mov bh, bl
test ecx, ecx
je 0x4d4f4e
mov esi, dword [esp + 0x64]
add esi, 0x14
inc edi
mov dword [esp + 0x64], esi
test bh, bh
jne 0x4d4db0
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x4d4f1c
mov eax, dword [esp + 0x3c]
movzx eax, ax
cmp ecx, eax
jge 0x4d4f22
xor al, al
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
test al, al
je 0x4d505b
mov bl, 1
mov dword [esp + 0x1c], ebx
jmp 0x4d5067
movzx eax, byte [eax + 0x506c98]
movzx ecx, byte [ecx + 0x506c98]
sub ecx, eax
jne 0x4d4eef
inc edx
jmp 0x4d4ee0
cmp word [esp + 0x70], 0
mov esi, dword [esp + 0x30]
je 0x4d4f63
mov eax, dword [esp + 0x24]
inc eax
mov word [esi + 0x1e], ax
test byte [ebp + 0xc], 0x40
mov byte [esp + 0xf], 1
jne 0x4d4fe4
mov ecx, dword [esp + 0x40]
lea eax, [edi + edi*4]
mov bh, byte [esp + 0x1b]
mov dl, byte [ecx + eax*4 + 0x10]
and dl, 1
test bh, bh
je 0x4d4fb0
mov dh, byte [esp + 0x1a]
xor ecx, ecx
mov bl, byte [esp + 0x19]
movzx eax, byte [esp + 0xf]
xor bl, dh
cmp bl, dl
mov byte [esp + 0x1a], dh
mov byte [esp + 0x1b], bh
cmove ecx, eax
test cl, cl
je 0x4d4f09
jmp 0x4d4fe4
xor dl, byte [esp + 0x19]
mov byte [esp + 0x1a], dl
je 0x4d4fdf
mov eax, dword [esp + 0x38]
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 + 0x80]
cmovae edx, ecx
or dword [eax], ecx
or dword [eax + 4], edx
mov byte [esp + 0x1b], 1
mov ecx, dword [esp + 0x40]
lea eax, [edi + edi*4]
mov edx, dword [esp + 0x24]
test byte [ecx + eax*4 + 0x10], 2
je 0x4d5009
movzx eax, word [esi + 0x18]
cmp edx, eax
jne 0x4d4f09
or dword [esi + 0x2c], 0x80000
cmp dword [esp + 0x28], 0xffffffff
mov ecx, 1
mov eax, dword [esp + 0x2c]
movzx eax, al
cmove eax, ecx
xor ecx, ecx
mov dword [esp + 0x2c], 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 + 0x10], eax
or dword [esp + 0x14], ecx
add dword [esp + 0x4c], 0x14
inc edx
mov dword [esp + 0x24], edx
cmp edx, dword [esp + 0x50]
jge 0x4d4f22
mov esi, dword [esp + 0x30]
jmp 0x4d4cb0
mov ebx, dword [esp + 0x1c]
test bl, bl
je 0x4d51db
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x5c]
mov edi, dword [esp + 0x60]
mov edx, dword [esp + 0x34]
or eax, dword [ecx + 8]
or edi, dword [ecx + 0xc]
mov dword [esp + 0x5c], eax
xor eax, eax
mov dword [esp + 0x60], edi
mov dword [esp + 0x3c], eax
test edx, edx
je 0x4d51e3
mov edx, dword [esp + 0x40]
add edx, 8
mov dword [esp + 0x2c], edx
nop
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 + 0x10]
mov eax, edi
and eax, dword [esp + 0x14]
or ecx, eax
jne 0x4d5143
mov eax, dword [edx]
mov dword [esp + 0x50], eax
test eax, eax
je 0x4d5171
mov ecx, dword [esp + 0x44]
mov edx, eax
add ecx, 0x1f0
call fcn.004ce0f0
mov ebx, eax
mov dword [esp + 0x70], edx
or eax, edx
jne 0x4d51b0
mov edx, dword [esp + 0x50]
lea ecx, [esp + 0xa0]
mov eax, 1
mov dword [esp + 0xa0], 0
mov word [esp + 0xb4], ax
mov dword [esp + 0xa4], fcn.00474110
mov dword [esp + 0xa8], 0x473f00
call fcn.0046d580
cmp word [esp + 0xb4], 0
mov edx, dword [esp + 0x70]
jne 0x4d51b0
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x3c]
add dword [esp + 0x2c], 0x14
inc eax
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x3c], eax
cmp eax, dword [esp + 0x34]
jl 0x4d50a0
mov ecx, dword [esp + 0x30]
mov ebx, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
jmp 0x4d51e7
xorps xmm0, xmm0
mov dword [esp + 0xa0], 0
movlpd qword [esp + 0x50], xmm0
mov eax, 1
mov edx, dword [esp + 0x54]
mov ebx, dword [esp + 0x50]
mov word [esp + 0xb4], ax
mov dword [esp + 0xa4], fcn.00474110
mov dword [esp + 0xa8], 0x473f00
mov ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x60]
not ecx
not eax
and ecx, ebx
and eax, edx
or ecx, eax
jne 0x4d5143
or dword [esp + 0x10], esi
mov esi, dword [esp + 0x14]
or esi, edi
mov dword [esp + 0x14], esi
jmp 0x4d5147
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x14]
inc dword [esp + 0x38]
mov edi, dword [esp + 0x48]
test bl, bl
jne 0x4d4921
jmp 0x4d520f
cmp byte [ecx + 0x20], 0
je 0x4d520b
and eax, 0x280
cmp eax, 0x80
jne 0x4d521d
mov edi, dword [esp + 0x48]
mov ecx, dword [esp + 0x7c]
cmp dword [esp + 0x10], ecx
jne 0x4d5239
cmp esi, edi
jne 0x4d5239
mov al, byte [esp + 0x88]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.004f5edb
mov esp, ebp
pop ebp
ret
test bl, bl
jne 0x4d52d3
lea ebx, [edx - 1]
test ebx, ebx
jle 0x4d52a5
mov edi, dword [esp + 0x14]
nop dword [eax]
cmp ebx, 0x40
jge 0x4d5274
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
adc edx, 0xffffffff
jmp 0x4d528e
xorps xmm0, xmm0
movlpd qword [esp + 0x88], xmm0
mov edx, dword [esp + 0x8c]
mov ecx, dword [esp + 0x88]
mov eax, ecx
mov esi, edx
and eax, dword [esp + 0x10]
and esi, edi
cmp eax, ecx
jne 0x4d52a0
cmp esi, edx
je 0x4d52bc
dec ebx
test ebx, ebx
jg 0x4d5250
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xb0]
xor ecx, esp
call fcn.004f5edb
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.004f5edb
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.004f5edb
mov esp, ebp
pop ebp
ret