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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
mov eax, dword [0x511080]
xor eax, esp
mov dword [esp + 0x110], eax
mov eax, ecx
mov dword [esp + 0x34], edx
mov ecx, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [esp + 0x84], ecx
mov ecx, dword [ebp + 0x14]
mov dword [esp + 0x88], ecx
mov ecx, dword [ebp + 0x18]
push ebx
mov dword [esp + 0x90], ecx
xor ecx, ecx
push esi
push edi
mov dword [esp + 0x44], eax
movlpd qword [esp + 0x50], xmm0
cmp word [ebp + 0x10], cx
je 0x4b7694
mov eax, dword [eax]
mov eax, dword [eax]
test byte [eax + 0x50], 0x40
jne 0x4b8097
movzx eax, word [edx]
mov dword [esp + 0x88], eax
cmp eax, 0x3f
ja 0x4b8097
movzx edi, ax
xor edx, edx
xor ebx, ebx
movlpd qword [esp + 0x80], xmm0
mov eax, edi
movlpd qword [esp + 0x48], xmm0
bts edx, eax
mov byte [esp + 0x20], 1
cmp eax, 0x20
mov dword [esp + 0x34], edi
cmovae ebx, edx
xor edx, ebx
cmp eax, 0x40
mov eax, dword [ebp + 0xc]
cmovae ebx, edx
add edx, 0xffffffff
mov dword [esp + 0x7c], edx
mov edx, dword [esp + 0x54]
adc ebx, 0xffffffff
and eax, 0x803
mov dword [esp + 0x74], ebx
mov ebx, dword [esp + 0x50]
neg eax
mov dword [esp + 0x1c], edx
sbb eax, eax
mov dword [esp + 0x14], ebx
neg eax
add eax, 0x182
xor esi, esi
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 + 0x4c]
mov dword [esp + 0x60], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x70], esi
mov dword [esp + 0x5c], eax
nop dword [eax]
mov eax, dword [esp + 0x74]
cmp edx, eax
ja 0x4b8006
jb 0x4b7758
cmp ebx, dword [esp + 0x7c]
jae 0x4b800a
movzx eax, word [ebp + 0x10]
cmp esi, eax
jg 0x4b802c
test esi, esi
jle 0x4b7782
mov edi, dword [esp + 0x5c]
or edi, dword [ecx + 8]
mov dword [esp + 0x5c], edi
mov edi, dword [esp + 0x60]
or edi, dword [ecx + 0xc]
mov dword [esp + 0x60], edi
mov edi, dword [esp + 0x34]
cmp esi, eax
jge 0x4b77a8
mov eax, dword [esp + 0x90]
mov eax, dword [eax + 0x18]
mov esi, dword [eax + esi*4]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x24], esi
test eax, 0x800
je 0x4b77b6
mov ecx, esi
jmp 0x4b7fcc
mov esi, dword [esp + 0x94]
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x24], esi
test dword [esi + 0x2c], 0x400
jne 0x4b7ff0
and eax, 0x80
mov dword [esp + 0x80], eax
je 0x4b77d7
xor eax, eax
mov word [esi + 0x1e], ax
movzx eax, byte [esi + 0x10]
lea ecx, [eax + eax*8]
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*8 + 0x34]
xor ecx, ecx
mov dword [esp + 0x64], eax
mov dword [esp + 0x28], ecx
test edi, edi
je 0x4b7952
mov eax, dword [esp + 0x40]
add eax, 8
mov dword [esp + 0xc], eax
mov edi, eax
mov eax, ecx
xor edx, edx
xor ecx, ecx
bts ecx, eax
cmp eax, 0x20
cmovae edx, ecx
xor ecx, edx
cmp eax, 0x40
mov dword [esp + 0x30], ecx
cmovae edx, ecx
and ecx, ebx
mov eax, edx
mov dword [esp + 0x38], edx
and eax, dword [esp + 0x1c]
or ecx, eax
jne 0x4b7934
mov edi, dword [edi]
test edi, edi
je 0x4b7930
mov eax, dword [edi + 4]
test eax, 0x82000
je 0x4b7866
test eax, 0x80000
je 0x4b785a
mov eax, dword [edi + 0x14]
mov edi, dword [eax + 8]
jmp 0x4b785d
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x4b7841
jmp 0x4b7930
mov al, byte [edi]
cmp al, 0xa7
je 0x4b7874
cmp al, 0xa9
jne 0x4b7930
mov edx, dword [esp + 0x64]
cmp dword [edi + 0x1c], edx
jne 0x4b7930
mov eax, dword [esp + 0x78]
xor ebx, ebx
movsx ecx, word [edi + 0x20]
push ebx
movzx eax, ax
push eax
push ecx
push edx
mov edx, dword [esp + 0x54]
lea ecx, [esp + 0xc8]
add edx, 0x50
call fcn.004b2050
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4b78fc
mov eax, dword [esp + 0x5c]
mov ecx, dword [esp + 0x60]
not eax
not ecx
mov dword [esp + 0x2c], eax
mov dword [esp + 0x48], ecx
mov edx, dword [esi + 0x20]
mov ecx, edx
and ecx, eax
mov eax, dword [esi + 0x24]
and eax, dword [esp + 0x48]
or ecx, eax
jne 0x4b78e4
or edx, dword [esi + 0x24]
jne 0x4b78df
test byte [esi + 0xc], 0x82
jne 0x4b78fe
test ebx, ebx
cmove ebx, esi
lea ecx, [esp + 0xb8]
call fcn.004b1d20
mov esi, eax
test esi, esi
je 0x4b78fc
mov eax, dword [esp + 0x2c]
jmp 0x4b78c2
mov esi, ebx
test esi, esi
je 0x4b792c
movzx ebx, word [esi + 0xc]
cmp ebx, 1
jne 0x4b7989
mov eax, dword [esp + 0x24]
xor ecx, ecx
movzx edx, word [eax + 0x30]
test edx, edx
je 0x4b7985
mov eax, dword [eax + 0x38]
nop dword [eax]
cmp esi, dword [eax]
je 0x4b7985
inc ecx
add eax, 4
cmp ecx, edx
jl 0x4b7920
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0x28]
add edi, 0x14
inc ecx
mov dword [esp + 0xc], edi
mov dword [esp + 0x28], ecx
cmp ecx, dword [esp + 0x34]
jl 0x4b7808
mov esi, dword [esp + 0x24]
mov eax, dword [esi + 0x2c]
test eax, 0x1000
jne 0x4b7e87
test eax, 0x100
je 0x4b7a55
mov dword [esp + 0x38], 0
mov ecx, 1
mov dword [esp + 0x48], 0
jmp 0x4b7a91
cmp ecx, edx
jge 0x4b792c
test bl, 0x82
je 0x4b7a1f
cmp word [edi + 0x20], 0
jl 0x4b7a1f
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0xc]
mov edi, dword [eax]
mov ecx, edi
mov edx, dword [edx]
call fcn.00458010
mov ebx, eax
test ebx, ebx
jne 0x4b79bb
mov eax, dword [edi]
mov ebx, dword [eax + 8]
mov eax, dword [esi]
test dword [eax + 4], 0x400
je 0x4b79ce
mov esi, dword [eax + 0xc]
mov edx, dword [eax + 0x10]
jmp 0x4b79d4
mov esi, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
test dword [edx + 4], 0x200
jne 0x4b79f7
test esi, esi
je 0x4b79ea
test dword [esi + 4], 0x200
jne 0x4b79f5
mov ecx, edi
call fcn.00458010
test eax, eax
jne 0x4b7a06
mov edx, esi
mov ecx, edi
call fcn.00458010
test eax, eax
je 0x4b792c
mov edi, dword [eax]
mov edx, dword [ebx]
sub edi, edx
nop dword [eax]
movzx eax, byte [edx]
movzx esi, byte [edx + edi]
cmp eax, esi
jne 0x4b7a3c
test eax, eax
jne 0x4b7a52
mov ebx, dword [esp + 0x14]
mov edx, dword [esp + 0x1c]
or ebx, dword [esp + 0x30]
or edx, dword [esp + 0x38]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], edx
jmp 0x4b7930
movzx ecx, byte [eax + 0x501178]
movzx eax, byte [esi + 0x501178]
sub ecx, eax
jne 0x4b792c
inc edx
jmp 0x4b7a10
mov edx, dword [esi + 0x20]
mov dword [esp + 0x38], edx
test edx, edx
je 0x4b8097
test byte [edx + 0x38], 4
jne 0x4b8097
cmp byte [edx + 0x36], 0
movzx ecx, word [edx + 0x32]
mov dword [esp + 0x48], ecx
movzx ecx, word [edx + 0x34]
je 0x4b7a8c
mov byte [esp + 0x20], 1
test eax, 0x8000
je 0x4b7a91
mov byte [esp + 0x20], 0
xor al, al
xor dl, dl
mov byte [esp + 0x1b], al
mov dword [esp + 0x28], eax
movzx eax, cx
mov byte [esp + 0x1a], dl
xor edx, edx
mov dword [esp + 0xc], edx
mov dword [esp + 0x50], eax
test eax, eax
je 0x4b7e87
mov dword [esp + 0x2c], edx
nop word [eax + eax]
movzx ebx, word [esi + 0x18]
mov byte [esp + 0x13], 1
cmp edx, ebx
jge 0x4b7b3a
movzx eax, word [esi + 0x32]
cmp edx, eax
jl 0x4b7b3a
mov edi, dword [esi + 0x38]
mov eax, dword [esp + 0x78]
mov esi, dword [edi + edx*4]
movzx ecx, word [esi + 0xc]
and eax, ecx
test ax, ax
je 0x4b7b08
mov eax, dword [esp + 0x20]
test ecx, 0x180
mov ecx, 0
movzx eax, al
cmove ecx, eax
mov byte [esp + 0x20], cl
jmp 0x4b7e6a
test cl, 1
je 0x4b7b3a
mov esi, dword [esi]
inc edx
cmp edx, ebx
jge 0x4b7b36
mov ecx, dword [esp + 0xc]
inc ecx
lea ecx, [edi + ecx*4]
nop dword [eax]
mov eax, dword [ecx]
cmp dword [eax], esi
je 0x4b7b30
inc edx
add ecx, 4
cmp edx, ebx
jl 0x4b7b20
jmp 0x4b7b36
xor al, al
mov byte [esp + 0x13], al
mov edx, dword [esp + 0xc]
mov esi, dword [esp + 0x38]
test esi, esi
je 0x4b7b66
mov eax, dword [esi + 4]
movsx ecx, word [eax + edx*2]
mov eax, dword [esi + 0x1c]
mov dword [esp + 0x3c], 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 0x4b7b72
jmp 0x4b7b6b
mov byte [esp + 0x19], 0
or ecx, 0xffffffff
mov dword [esp + 0x3c], ecx
mov eax, dword [esp + 0x20]
test al, al
je 0x4b7ba7
test ecx, ecx
js 0x4b7b98
cmp edx, ebx
jl 0x4b7ba7
mov eax, dword [esi + 0xc]
add ecx, ecx
mov eax, dword [eax + 4]
test byte [eax + ecx*8 + 4], 0xf
jne 0x4b7ba7
mov byte [esp + 0x20], 0
jmp 0x4b7ba7
xor edx, edx
movzx eax, al
cmp ecx, 0xfffffffe
cmove eax, edx
mov dword [esp + 0x20], eax
mov bl, byte [esp + 0x13]
xor edi, edi
test bl, bl
je 0x4b7d39
mov esi, dword [esp + 0x40]
add esi, 8
mov dword [esp + 0x30], esi
cmp edi, dword [esp + 0x34]
jge 0x4b7d39
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 + 0x1c]
or edx, ecx
jne 0x4b7d29
mov edx, dword [esi]
test edx, edx
je 0x4b7d29
nop dword [eax + eax]
mov eax, dword [edx + 4]
test eax, 0x82000
je 0x4b7c25
test eax, 0x80000
je 0x4b7c19
mov eax, dword [edx + 0x14]
mov edx, dword [eax + 8]
jmp 0x4b7c1c
mov edx, dword [edx + 0xc]
test edx, edx
jne 0x4b7c00
jmp 0x4b7d29
mov al, byte [ebp + 0xc]
mov ecx, dword [esp + 0x3c]
and al, 0xc0
neg al
sbb al, al
and bl, al
mov bh, bl
cmp ecx, 0xffffffff
jl 0x4b7c66
mov al, byte [edx]
cmp al, 0xa7
je 0x4b7c49
cmp al, 0xa9
jne 0x4b7d29
mov eax, dword [esp + 0x64]
mov bl, bh
cmp dword [edx + 0x1c], eax
jne 0x4b7d29
movsx eax, word [edx + 0x20]
cmp eax, ecx
jne 0x4b7d29
jmp 0x4b7cd7
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax + 0x28]
mov ecx, dword [eax + ecx + 8]
test ecx, ecx
je 0x4b7ca0
nop dword [eax]
mov eax, dword [ecx + 4]
test eax, 0x82000
je 0x4b7ca0
test eax, 0x80000
je 0x4b7c99
mov eax, dword [ecx + 0x14]
mov ecx, dword [eax + 8]
jmp 0x4b7c9c
mov ecx, dword [ecx + 0xc]
test ecx, ecx
jne 0x4b7c80
mov eax, dword [edx + 4]
test eax, 0x82000
je 0x4b7cc0
test eax, 0x80000
je 0x4b7cb9
mov eax, dword [edx + 0x14]
mov edx, dword [eax + 8]
jmp 0x4b7cbc
mov edx, dword [edx + 0xc]
test edx, edx
jne 0x4b7ca0
push dword [esp + 0x64]
push ecx
xor ecx, ecx
call fcn.00462260
add esp, 8
test eax, eax
jne 0x4b7d29
mov ecx, dword [esp + 0x3c]
cmp ecx, 0xffffffff
je 0x4b7d7b
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x30]
mov esi, dword [eax]
mov ecx, esi
mov edx, dword [edx]
call fcn.00458010
test eax, eax
jne 0x4b7cfc
mov eax, dword [esi]
mov eax, dword [eax + 8]
mov edx, dword [eax]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0xc]
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 0x4b7d66
test ecx, ecx
jne 0x4b7d78
mov bl, bh
test ecx, ecx
je 0x4b7d7b
mov esi, dword [esp + 0x30]
add esi, 0x14
inc edi
mov dword [esp + 0x30], esi
test bl, bl
jne 0x4b7bc0
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x4b7d4c
mov eax, dword [esp + 0x48]
movzx eax, ax
cmp ecx, eax
jge 0x4b7d51
mov byte [esp + 0x20], 0
cmp byte [esp + 0x28], 0
je 0x4b7e87
mov byte [esp + 0x20], 1
jmp 0x4b7e92
movzx eax, byte [eax + 0x501178]
movzx ecx, byte [ecx + 0x501178]
sub ecx, eax
jne 0x4b7d1f
inc edx
jmp 0x4b7d10
cmp word [esp + 0x80], 0
mov esi, dword [esp + 0x24]
je 0x4b7d93
mov eax, dword [esp + 0xc]
inc eax
mov word [esi + 0x1e], ax
test byte [ebp + 0xc], 0x40
mov byte [esp + 0x13], 1
jne 0x4b7e10
mov edx, dword [esp + 0x40]
lea eax, [edi + edi*4]
mov bh, byte [esp + 0x1b]
mov dl, byte [edx + eax*4 + 0x10]
and dl, 1
test bh, bh
je 0x4b7ddc
mov dh, byte [esp + 0x1a]
xor ecx, ecx
mov bl, byte [esp + 0x19]
movzx eax, byte [esp + 0x13]
xor bl, dh
cmp bl, dl
mov byte [esp + 0x1a], dh
mov byte [esp + 0x1b], bh
cmove ecx, eax
test cl, cl
je 0x4b7d39
jmp 0x4b7e10
xor dl, byte [esp + 0x19]
mov byte [esp + 0x1a], dl
je 0x4b7e0b
mov eax, dword [esp + 0x70]
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 + 0x1b], 1
mov ecx, dword [esp + 0x40]
lea eax, [edi + edi*4]
mov edx, dword [esp + 0xc]
test byte [ecx + eax*4 + 0x10], 2
je 0x4b7e35
movzx eax, word [esi + 0x18]
cmp edx, eax
jne 0x4b7d39
or dword [esi + 0x2c], 0x80000
cmp dword [esp + 0x3c], 0xffffffff
mov ecx, 1
mov eax, dword [esp + 0x28]
movzx eax, al
cmove eax, ecx
xor ecx, ecx
mov dword [esp + 0x28], 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 + 0x14], eax
or dword [esp + 0x1c], ecx
add dword [esp + 0x2c], 0x14
inc edx
mov dword [esp + 0xc], edx
cmp edx, dword [esp + 0x50]
jge 0x4b7d51
mov esi, dword [esp + 0x24]
jmp 0x4b7ac0
cmp byte [esp + 0x20], 0
je 0x4b7fe2
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x68]
mov edi, dword [esp + 0x34]
mov edx, dword [esp + 0x1c]
or eax, dword [ecx + 8]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x6c]
or eax, dword [ecx + 0xc]
mov dword [esp + 0x6c], eax
xor eax, eax
mov dword [esp + 0x30], eax
test edi, edi
je 0x4b7fc8
mov ebx, dword [esp + 0x40]
add ebx, 8
mov dword [esp + 0x28], ebx
nop dword [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 0x4b7fa6
mov ebx, dword [ebx]
test ebx, ebx
je 0x4b7f12
mov ecx, dword [esp + 0x44]
mov edx, ebx
lea ecx, [ecx + 0x1f0]
call fcn.004b1830
mov ecx, edx
jmp 0x4b7f23
xorps xmm0, xmm0
movlpd qword [esp + 0x50], xmm0
mov ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x50]
mov dword [esp + 0x48], eax
or eax, ecx
mov dword [esp + 0x2c], ecx
jne 0x4b7f7a
mov dword [esp + 0xa0], fcn.0045ad40
mov eax, 1
mov word [esp + 0xb0], ax
mov dword [esp + 0xa4], 0x45abe0
mov dword [esp + 0xb4], 0
test ebx, ebx
je 0x4b7f7a
mov edx, ebx
lea ecx, [esp + 0x9c]
call fcn.00454c50
cmp word [esp + 0xb0], 0
je 0x4b7fa2
mov ecx, dword [esp + 0x68]
mov eax, dword [esp + 0x6c]
not ecx
and ecx, dword [esp + 0x48]
not eax
and eax, dword [esp + 0x2c]
or ecx, eax
mov edx, dword [esp + 0x1c]
jne 0x4b7fa6
or dword [esp + 0x14], esi
or edx, edi
mov dword [esp + 0x1c], edx
jmp 0x4b7fa6
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x30]
add dword [esp + 0x28], 0x14
inc eax
mov edi, dword [esp + 0x34]
mov ebx, dword [esp + 0x28]
mov dword [esp + 0x30], eax
cmp eax, edi
jl 0x4b7ed0
mov ecx, dword [esp + 0x24]
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x70]
inc esi
cmp byte [esp + 0x20], 0
mov dword [esp + 0x70], esi
jne 0x4b7740
jmp 0x4b8002
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x34]
jmp 0x4b7fc8
cmp byte [esi + 0x20], 0
je 0x4b802c
and eax, 0x280
cmp eax, 0x80
jne 0x4b8010
mov eax, dword [esp + 0x74]
cmp ebx, dword [esp + 0x7c]
jne 0x4b802c
cmp edx, eax
jne 0x4b802c
mov al, byte [esp + 0x88]
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.004d2eed
mov esp, ebp
pop ebp
ret
cmp byte [esp + 0x20], 0
jne 0x4b80c5
lea ebx, [edi - 1]
test ebx, ebx
jle 0x4b8097
mov edi, dword [esp + 0x1c]
cmp ebx, 0x40
jge 0x4b8066
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 0x4b8080
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 + 0x14]
and esi, edi
cmp eax, ecx
jne 0x4b8092
cmp esi, edx
je 0x4b80ae
dec ebx
test ebx, ebx
jg 0x4b8042
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.004d2eed
mov esp, ebp
pop ebp
ret
mov al, bl
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.004d2eed
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x11c]
or al, 0xff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.004d2eed
mov esp, ebp
pop ebp
ret