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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [ebp + 8]
and byte [ebp - 4], 0
push esi
movsx edx, word [ebx + 0x14]
mov eax, dword [ebx + 0x144]
or dword [ebx + 0x150], 0xffffffff
or dword [ebx + 0x14c], 0xffffffff
mov esi, dword [ebx]
movzx ecx, byte [eax + ebx + 0x28]
mov eax, edx
imul eax, dword [ebx + 0x140]
mov ecx, dword [esi + ecx*8 + 4]
lea eax, [eax + eax*4]
add ecx, eax
mov dword [ebp - 0x10], ecx
je 0x4b7e3a
and dword [ebp - 0x14], 0
test edx, edx
jle 0x4b7e3a
push edi
jmp 0x4b76e3
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
mov al, byte [ecx + 4]
imul esi, esi, 0xac
mov dl, al
and al, 0xf
shr dl, 4
mov byte [ebp - 1], dl
mov dl, byte [ecx + 3]
add esi, 0x4ba0e0
cmp dl, 3
mov byte [ebp - 2], al
je 0x4b7715
cmp dl, 5
je 0x4b7715
and byte [ebp - 3], 0
jmp 0x4b7719
mov byte [ebp - 3], 1
mov dl, byte [ecx + 1]
test dl, dl
mov byte [ebp - 5], dl
je 0x4b772e
cmp byte [ebp - 3], 0
jne 0x4b772e
dec dl
mov byte [esi + 0x66], dl
mov dl, byte [ecx]
test dl, dl
mov byte [ebp - 5], dl
je 0x4b7746
cmp dl, 0xff
je 0x4b7746
cmp byte [ebp - 3], 0
jne 0x4b7746
dec dl
mov byte [esi], dl
mov dl, byte [esi + 0x66]
movzx di, dl
cmp di, word [ebx + 0x20]
jl 0x4b7768
and dword [0x4bb7c0], 0
mov edi, 0x4bb660
mov dword [ebp - 0xc], 0x4bb7c0
jmp 0x4b779f
movzx edi, dl
imul edi, edi, 0x154
movzx edx, byte [esi]
add edi, dword [ebx + 4]
mov dl, byte [edx + edi + 0x44]
cmp dl, 0x10
jb 0x4b7789
mov dword [ebp - 0xc], 0x4bb7c0
jmp 0x4b7793
movzx edx, dl
mov edx, dword [edi + edx*4 + 4]
mov dword [ebp - 0xc], edx
cmp byte [ebp - 3], 0
jne 0x4b779f
mov edx, dword [ebp - 0xc]
mov dword [esi + 8], edx
mov edx, dword [esi + 0x10]
cmp byte [esi + 0x6c], 7
mov dword [ebp - 0x18], edx
mov edx, dword [esi + 0xc]
mov dword [ebp - 0x24], edx
mov edx, dword [esi + 0x14]
mov dword [ebp - 0x28], edx
jne 0x4b77c9
cmp byte [ecx + 3], 7
je 0x4b77c9
mov eax, dword [esi + 0x18]
add eax, dword [ebp - 0x18]
mov dword [esi + 0x10], eax
mov al, byte [ebp - 2]
mov dl, byte [ecx + 3]
mov byte [esi + 0x6c], dl
and dword [esi + 0x18], 0
and byte [esi + 2], 0
mov dl, byte [ecx]
test dl, dl
je 0x4b7838
cmp dl, 0xff
je 0x4b7838
mov eax, dword [ebp - 0xc]
mov cl, byte [eax + 0x1f]
add cl, dl
dec cl
mov byte [esi + 0x67], cl
test byte [ebx + 0x22], 1
movsx eax, byte [eax + 0x11]
je 0x4b7813
movzx ecx, cl
cdq
sub eax, edx
neg ecx
sar eax, 1
shl ecx, 6
sub ecx, eax
add ecx, 0x1e00
mov dword [esi + 0x68], ecx
jmp 0x4b7822
push eax
movzx eax, cl
push eax
call fcn.004b72c0
pop ecx
mov dword [esi + 0x68], eax
pop ecx
cmp byte [ebp - 3], 0
jne 0x4b782e
mov eax, dword [esi + 0x68]
mov dword [esi + 0xc], eax
mov al, byte [ebp - 2]
mov ecx, dword [ebp - 0x10]
mov byte [esi + 2], 8
and dword [esi + 0x1c], 0
or byte [esi + 2], 3
cmp byte [ecx + 1], 0
je 0x4b7857
push dword [ebp - 0xc]
push esi
call fcn.004b7604
mov al, byte [ebp - 2]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
mov dl, byte [ecx + 2]
test dl, dl
je 0x4b786d
push edx
push esi
call fcn.004b71c8
mov al, byte [ebp - 2]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x10]
cmp byte [ecx], 0xff
je 0x4b7878
cmp byte [ecx + 3], 0x14
jne 0x4b787c
mov byte [esi + 0x65], 1
mov dl, byte [edi + 0x14c]
test dl, 1
mov byte [ebp - 0x1c], dl
je 0x4b78e2
cmp byte [esi + 0x3c], 0
lea edx, [esi + 0x3c]
jne 0x4b78ec
lea eax, [esi + 0x38]
push 2
push eax
lea eax, [esi + 0x30]
push edx
push eax
lea eax, [esi + 0x34]
push eax
mov al, byte [edi + 0x146]
push eax
mov al, byte [edi + 0x147]
push eax
mov al, byte [edi + 0x148]
push eax
lea eax, [edi + 0xa4]
push eax
movzx eax, byte [edi + 0x144]
push eax
lea eax, [esi + 0x28]
push dword [ebp - 0x1c]
push eax
lea eax, [esi + 0x2c]
push eax
push esi
call fcn.004b70cc
mov al, byte [ebp - 2]
mov ecx, dword [ebp - 0x10]
add esp, 0x38
jmp 0x4b78ec
cmp byte [esi + 0x65], 0
je 0x4b78ec
and dword [esi + 0x34], 0
mov dl, byte [edi + 0x14d]
test dl, 1
mov byte [ebp - 0x20], dl
je 0x4b7950
cmp byte [esi + 0x54], 0
lea edx, [esi + 0x54]
jne 0x4b7950
lea eax, [esi + 0x50]
push 4
push eax
lea eax, [esi + 0x48]
push edx
push eax
lea eax, [esi + 0x4c]
push eax
mov al, byte [edi + 0x149]
push eax
mov al, byte [edi + 0x14a]
push eax
mov al, byte [edi + 0x14b]
push eax
lea eax, [edi + 0xf4]
push eax
movzx eax, byte [edi + 0x145]
push eax
lea eax, [esi + 0x40]
push dword [ebp - 0x20]
push eax
lea eax, [esi + 0x44]
push eax
push esi
call fcn.004b70cc
mov al, byte [ebp - 2]
mov ecx, dword [ebp - 0x10]
add esp, 0x38
cmp byte [esi + 0x65], 0
je 0x4b796a
movzx edx, word [edi + 0x152]
sub dword [esi + 0x58], edx
jns 0x4b7966
and dword [esi + 0x58], 0
or byte [esi + 2], 2
movzx edx, byte [ecx + 3]
cmp edx, 0x15
jg 0x4b7d92
je 0x4b7cc6
dec edx
cmp edx, 0x10
ja case.0x4b7b28.3
jmp dword [edx*4 + 0x4b7e3e]
mov cl, byte [ecx + 4]
test cl, cl
je case.0x4b7b28.3
mov byte [esi + 0x79], cl
jmp case.0x4b7b28.3
mov cl, byte [ecx + 4]
test cl, cl
je case.0x4b7b28.3
mov byte [esi + 0x78], cl
jmp case.0x4b7b28.3
mov cl, byte [ecx + 4]
test cl, cl
je 0x4b79c1
mov byte [esi + 0x84], cl
mov eax, dword [esi + 0x68]
mov dword [esi + 0x80], eax
jmp 0x4b79df
mov eax, dword [esi + 0x68]
mov dword [esi + 0x80], eax
mov cl, byte [ecx + 4]
test cl, cl
je 0x4b79df
mov byte [esi + 0x7c], cl
and byte [esi + 2], 0xf6
jmp case.0x4b7b28.3
mov cl, byte [ebp - 1]
test cl, cl
je 0x4b79f5
mov byte [esi + 0x86], cl
test al, al
je 0x4b79ff
mov byte [esi + 0x87], al
push esi
call fcn.004b6e4c
jmp 0x4b7def
mov cl, byte [ecx + 4]
test cl, cl
je 0x4b79ff
mov byte [esi + 0x7c], cl
jmp 0x4b79ff
mov cl, byte [ebp - 1]
test cl, cl
je 0x4b7a23
mov byte [esi + 0x8a], cl
test al, al
je case.0x4b7b28.3
mov byte [esi + 0x8b], al
jmp case.0x4b7b28.3
movzx eax, byte [ecx + 4]
jmp 0x4b7bf1
mov cl, byte [ecx + 4]
test cl, cl
je 0x4b7a4c
movzx eax, cl
mov dword [esi + 0x70], eax
cmp dword [esi + 4], 0
je case.0x4b7b28.3
mov ecx, dword [ebp - 0xc]
mov eax, dword [esi + 0x70]
shl eax, 8
mov edx, dword [ecx + 0xc]
add edx, dword [ecx + 8]
cmp eax, edx
jb 0x4b7a78
mov al, byte [esi + 2]
and al, 0xf7
or al, 0x20
mov byte [esi + 2], al
jmp case.0x4b7b28.3
mov ecx, dword [esi + 4]
mov dword [ecx + 0x18], eax
jmp case.0x4b7b28.3
mov cl, byte [ecx + 4]
test cl, cl
je case.0x4b7b28.3
mov byte [esi + 0x7c], cl
jmp case.0x4b7b28.3
movzx eax, byte [ecx + 4]
and dword [ebx + 0x14c], 0
mov dword [ebx + 0x150], eax
movsx eax, word [ebx + 0x10]
cmp dword [ebx + 0x150], eax
jl 0x4b7aba
and dword [ebx + 0x150], 0
mov byte [ebp - 4], 1
jmp case.0x4b7b28.3
movzx eax, byte [ecx + 4]
jmp 0x4b7c15
movzx ecx, byte [ebp - 1]
movzx eax, al
lea ecx, [ecx + ecx*4]
lea eax, [eax + ecx*2]
cmp eax, 0x3f
mov dword [ebx + 0x14c], eax
jle 0x4b7aeb
and dword [ebx + 0x14c], 0
cmp byte [ebp - 4], 0
jne 0x4b7afe
mov eax, dword [ebx + 0x144]
inc eax
mov dword [ebx + 0x150], eax
movsx eax, word [ebx + 0x10]
cmp dword [ebx + 0x150], eax
jl case.0x4b7b28.3
and dword [ebx + 0x150], 0
jmp case.0x4b7b28.3
movzx ecx, byte [ebp - 1]
dec ecx
cmp ecx, 0xd
ja case.0x4b7b28.3
jmp dword [ecx*4 + 0x4b7e82]
test al, al
je 0x4b7b39
mov byte [esi + 0xa8], al
movzx eax, byte [esi + 0xa8]
shl eax, 2
jmp 0x4b7db5
test al, al
je 0x4b7b52
mov byte [esi + 0xa9], al
movzx eax, byte [esi + 0xa9]
shl eax, 2
add dword [esi + 0xc], eax
jmp case.0x4b7b28.3
mov dl, byte [esi + 0xa2]
lea ecx, [esi + 0xa2]
and dl, 0xf0
or dl, al
mov byte [ecx], dl
jmp case.0x4b7b28.3
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 0x11], al
jmp case.0x4b7b28.3
test al, al
jne 0x4b7b9c
mov eax, dword [ebx + 0x140]
mov dword [esi + 0x98], eax
jmp case.0x4b7b28.3
mov edx, dword [esi + 0x9c]
lea ecx, [esi + 0x9c]
test edx, edx
jne 0x4b7bb3
movzx eax, al
mov dword [ecx], eax
jmp 0x4b7bb6
dec edx
mov dword [ecx], edx
cmp dword [ecx], 0
je case.0x4b7b28.3
mov eax, dword [esi + 0x98]
mov dword [ebx + 0x14c], eax
jmp case.0x4b7b28.3
mov dl, byte [esi + 0xa2]
lea ecx, [esi + 0xa2]
shl al, 4
and dl, 0xf
or al, dl
mov byte [ecx], al
jmp case.0x4b7b28.3
movzx eax, al
shl eax, 4
mov dword [esi + 0x14], eax
jmp 0x4b7e0d
test al, al
je 0x4b7c03
mov byte [esi + 0xa7], al
movzx eax, byte [esi + 0xa7]
add dword [esi + 0x10], eax
push 0x40
pop eax
cmp dword [esi + 0x10], eax
jle 0x4b7c18
mov dword [esi + 0x10], eax
or byte [esi + 2], 2
jmp case.0x4b7b28.3
test al, al
je 0x4b7c2b
mov byte [esi + 0xa7], al
movzx eax, byte [esi + 0xa7]
sub dword [esi + 0x10], eax
jns 0x4b7c18
and dword [esi + 0x10], 0
jmp 0x4b7c18
mov eax, dword [ebp - 0x18]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0xc], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x14], eax
and byte [esi + 2], 0xf0
jmp case.0x4b7b28.3
mov ecx, dword [ebx + 0x138]
movzx eax, al
imul ecx, eax
mov dword [ebx + 0x148], ecx
jmp case.0x4b7b28.3
mov cl, byte [ecx + 4]
cmp cl, 0x20
movzx eax, cl
jae 0x4b7c85
mov dword [ebx + 0x138], eax
jmp case.0x4b7b28.3
push eax
push ebx
call fcn.004b664c
pop ecx
jmp 0x4b7def
movzx ecx, byte [ecx + 4]
push 0x40
lea eax, [ebx + 0x12c]
pop edx
cmp ecx, edx
mov dword [eax], ecx
jle 0x4b7c18
mov dword [eax], edx
jmp 0x4b7c18
mov cl, byte [ecx + 4]
test cl, cl
je case.0x4b7b28.3
mov byte [ebx + 0x130], cl
jmp case.0x4b7b28.3
test byte [edi + 0x14c], 1
je case.0x4b7b28.3
movzx cx, byte [ecx + 4]
lea edx, [edi + 0xa8]
xor eax, eax
cmp cx, word [edx]
jbe 0x4b7d00
mov dword [ebp - 0x18], edx
movzx edx, byte [edi + 0x144]
cmp eax, edx
jge 0x4b7d00
add dword [ebp - 0x18], 4
inc eax
mov edx, dword [ebp - 0x18]
cmp cx, word [edx]
ja 0x4b7ce8
mov dword [esi + 0x2c], eax
movzx ecx, byte [edi + 0x144]
lea edx, [ecx - 1]
cmp eax, edx
jl 0x4b7d25
movzx eax, word [edi + ecx*4 + 0xa2]
mov dword [esi + 0x34], eax
mov byte [esi + 0x3c], 1
jmp case.0x4b7b28.3
mov ecx, dword [ebp - 0x10]
and byte [esi + 0x3c], 0
lea ebx, [eax + 1]
movzx ecx, byte [ecx + 4]
mov dword [esi + 0x28], ecx
movzx edx, word [edi + eax*4 + 0xa4]
movzx ecx, word [edi + eax*4 + 0xa6]
movzx eax, word [edi + ebx*4 + 0xa4]
shl ecx, 0x10
sub eax, edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x28], eax
je 0x4b7d71
movzx eax, word [edi + ebx*4 + 0xa6]
shl eax, 0x10
sub eax, ecx
cdq
idiv dword [ebp - 0x28]
mov dword [esi + 0x38], eax
jmp 0x4b7d75
and dword [esi + 0x38], 0
mov eax, dword [esi + 0x28]
mov dword [esi + 0x2c], ebx
sub eax, dword [ebp - 0x24]
mov ebx, dword [ebp + 8]
imul eax, dword [esi + 0x38]
add ecx, eax
mov dword [esi + 0x30], ecx
sar ecx, 0x10
mov dword [esi + 0x34], ecx
jmp case.0x4b7b28.3
sub edx, 0x19
je 0x4b7e03
dec edx
dec edx
je 0x4b7df2
dec edx
dec edx
je 0x4b7dd0
sub edx, 4
jne case.0x4b7b28.3
cmp byte [ebp - 1], 1
jne 0x4b7dba
test al, al
je 0x4b7db1
mov byte [esi + 0x7b], al
movzx eax, byte [esi + 0x7b]
sub dword [esi + 0xc], eax
jmp case.0x4b7b28.3
cmp byte [ebp - 1], 2
jne case.0x4b7b28.3
test al, al
je 0x4b7dc7
mov byte [esi + 0x7a], al
movzx eax, byte [esi + 0x7a]
jmp 0x4b7b5c
cmp byte [ecx + 4], 0
je 0x4b7de9
mov cl, byte [ebp - 1]
inc cl
inc al
mov byte [esi + 0x93], cl
mov byte [esi + 0x94], al
push esi
call fcn.004b73a0
pop ecx
jmp case.0x4b7b28.3
cmp byte [ecx + 4], 0
je case.0x4b7b28.3
mov cl, byte [ebp - 1]
mov byte [esi + 0x7f], al
mov byte [esi + 0x7e], cl
jmp case.0x4b7b28.3
mov cl, byte [ecx + 4]
test cl, cl
je case.0x4b7b28.3
mov byte [esi + 0x7d], cl
or byte [esi + 2], 4
push edi
push esi
call fcn.004b6eec
push ebx
push dword [ebp - 0xc]
push esi
call fcn.004b73e8
movsx eax, word [ebx + 0x14]
add dword [ebp - 0x10], 5
add esp, 0x14
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], eax
jl 0x4b76e0
pop edi
pop esi
pop ebx
leave
ret