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

Disassembly:
push ebp
push edi
xor eax, eax
push esi
push ebx
sub esp, 0x88
mov esi, dword [esp + 0xa4]
mov dword [esp + eax + 0x48], 0
add eax, 4
cmp eax, 0x20
jb 0x4e66b3
mov eax, dword [esp + 0xa0]
test esi, esi
lea ecx, [eax + esi*2]
je 0x4e66e1
movzx edx, word [eax]
add eax, 2
add word [esp + edx*2 + 0x48], 1
cmp ecx, eax
jne 0x4e66d1
movzx edx, word [esp + 0x66]
test dx, dx
jne 0x4e67e1
cmp word [esp + 0x64], 0
jne 0x4e7169
cmp word [esp + 0x62], 0
jne 0x4e7176
cmp word [esp + 0x60], 0
jne 0x4e7183
cmp word [esp + 0x5e], 0
jne 0x4e7190
cmp word [esp + 0x5c], 0
jne 0x4e719d
cmp word [esp + 0x5a], 0
jne 0x4e71aa
cmp word [esp + 0x58], 0
jne 0x4e71c4
cmp word [esp + 0x56], 0
jne 0x4e71b7
cmp word [esp + 0x54], 0
jne 0x4e71eb
cmp word [esp + 0x52], 0
jne 0x4e71de
cmp word [esp + 0x50], 0
jne 0x4e71d1
cmp word [esp + 0x4e], 0
jne 0x4e7212
cmp word [esp + 0x4c], 0
jne 0x4e71f8
cmp word [esp + 0x4a], 0
jne 0x4e7089
mov eax, dword [esp + 0xa8]
xor edx, edx
mov esi, dword [esp + 0xa8]
xor ecx, ecx
mov eax, dword [eax]
mov word [eax + 2], dx
lea edx, [eax + 8]
mov byte [eax], 0x40
mov byte [eax + 1], 1
mov dword [esi], edx
mov byte [eax + 4], 0x40
mov byte [eax + 5], 1
mov word [eax + 6], cx
mov eax, dword [esp + 0xac]
mov dword [eax], 1
xor eax, eax
add esp, 0x88
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x20], 0xf
lea esi, [esi]
mov eax, dword [esp + 0xac]
mov ebx, dword [esp + 0x20]
mov eax, dword [eax]
cmp ebx, eax
cmovbe eax, ebx
cmp word [esp + 0x4a], 0
mov dword [esp], eax
jne 0x4e70a7
cmp ebx, 2
je 0x4e70cd
cmp word [esp + 0x4c], 0
jne 0x4e70cd
cmp ebx, 3
je 0x4e7135
cmp word [esp + 0x4e], 0
jne 0x4e7135
cmp ebx, 4
je 0x4e7128
cmp word [esp + 0x50], 0
jne 0x4e7128
cmp ebx, 5
je 0x4e711b
cmp word [esp + 0x52], 0
jne 0x4e711b
cmp ebx, 6
je 0x4e710e
cmp word [esp + 0x54], 0
jne 0x4e710e
cmp ebx, 7
je 0x4e7101
cmp word [esp + 0x56], 0
jne 0x4e7101
cmp ebx, 8
je 0x4e70f4
cmp word [esp + 0x58], 0
jne 0x4e70f4
cmp ebx, 9
je 0x4e70e7
cmp word [esp + 0x5a], 0
jne 0x4e70e7
cmp ebx, 0xa
je 0x4e70da
cmp word [esp + 0x5c], 0
jne 0x4e70da
cmp ebx, 0xb
je 0x4e715c
cmp word [esp + 0x5e], 0
jne 0x4e715c
cmp ebx, 0xc
je 0x4e714f
cmp word [esp + 0x60], 0
jne 0x4e714f
cmp ebx, 0xd
je 0x4e7142
cmp word [esp + 0x62], 0
jne 0x4e7142
cmp ebx, 0xf
jne 0x4e7205
xor eax, eax
cmp word [esp + 0x64], 0
sete al
add eax, 0xe
mov dword [esp + 4], eax
movzx ecx, word [esp + 0x4a]
mov eax, 2
sub eax, ecx
mov edi, ecx
mov ecx, eax
lea eax, [ecx + ecx]
movzx ecx, word [esp + 0x4c]
sub eax, ecx
mov ebx, ecx
js 0x4e6bd1
movzx ecx, word [esp + 0x4e]
add eax, eax
sub eax, ecx
mov word [esp + 8], cx
js 0x4e6bd1
movzx ecx, word [esp + 0x50]
add eax, eax
sub eax, ecx
mov ebp, ecx
js 0x4e6bd1
movzx ecx, word [esp + 0x52]
add eax, eax
sub eax, ecx
mov word [esp + 0x10], cx
js 0x4e6bd1
movzx ecx, word [esp + 0x54]
add eax, eax
sub eax, ecx
mov word [esp + 0xc], cx
js 0x4e6bd1
movzx ecx, word [esp + 0x56]
add eax, eax
sub eax, ecx
mov word [esp + 0x14], cx
js 0x4e6bd1
movzx ecx, word [esp + 0x58]
add eax, eax
sub eax, ecx
mov word [esp + 0x24], cx
js 0x4e6bd1
movzx ecx, word [esp + 0x5a]
add eax, eax
sub eax, ecx
mov word [esp + 0x1c], cx
js 0x4e6bd1
movzx ecx, word [esp + 0x5c]
add eax, eax
sub eax, ecx
mov word [esp + 0x18], cx
js 0x4e6bd1
movzx ecx, word [esp + 0x5e]
add eax, eax
sub eax, ecx
mov word [esp + 0x2c], cx
js 0x4e6bd1
movzx ecx, word [esp + 0x60]
add eax, eax
sub eax, ecx
mov word [esp + 0x28], cx
js 0x4e6bd1
movzx ecx, word [esp + 0x62]
add eax, eax
sub eax, ecx
mov word [esp + 0x34], cx
js 0x4e6bd1
movzx ecx, word [esp + 0x64]
add eax, eax
sub eax, ecx
mov word [esp + 0x30], cx
js 0x4e6bd1
add eax, eax
cmp eax, edx
js 0x4e6bd1
je 0x4e6a5d
mov eax, dword [esp + 0x9c]
test eax, eax
je 0x4e6bd1
cmp dword [esp + 0x20], 1
jne 0x4e6bd1
add ebx, edi
xor eax, eax
mov word [esp + 0x6c], di
mov word [esp + 0x6e], bx
add bx, word [esp + 8]
mov word [esp + 0x6a], ax
xor eax, eax
mov word [esp + 0x70], bx
add ebx, ebp
mov word [esp + 0x72], bx
add bx, word [esp + 0x10]
mov word [esp + 0x74], bx
add bx, word [esp + 0xc]
mov word [esp + 0x76], bx
add bx, word [esp + 0x14]
mov word [esp + 0x78], bx
add bx, word [esp + 0x24]
mov word [esp + 0x7a], bx
add bx, word [esp + 0x1c]
mov word [esp + 0x7c], bx
add bx, word [esp + 0x18]
mov word [esp + 0x7e], bx
add bx, word [esp + 0x2c]
mov word [esp + 0x80], bx
add bx, word [esp + 0x28]
mov word [esp + 0x82], bx
add bx, word [esp + 0x34]
mov word [esp + 0x84], bx
add bx, word [esp + 0x30]
test esi, esi
mov word [esp + 0x86], bx
je 0x4e6b26
mov ebx, dword [esp + 0xa0]
mov edi, dword [esp + 0xb0]
movzx edx, word [ebx + eax*2]
test dx, dx
je 0x4e6b1f
movzx ecx, word [esp + edx*2 + 0x68]
lea ebp, [ecx + 1]
mov word [edi + ecx*2], ax
mov word [esp + edx*2 + 0x68], bp
add eax, 1
cmp esi, eax
jne 0x4e6b05
mov esi, dword [esp + 4]
mov eax, dword [esp]
mov ecx, dword [esp + 0x9c]
cmp eax, esi
cmovb eax, esi
test ecx, ecx
mov esi, eax
mov dword [esp + 0x28], eax
je 0x4e6be1
cmp dword [esp + 0x9c], 1
mov edx, 0x100
mov eax, 0xffffffff
mov ecx, esi
cmove eax, edx
mov edx, 0x50499e
mov dword [esp + 0x2c], eax
mov eax, 0x504b20
cmove eax, edx
mov edx, 0x5049de
mov dword [esp + 0x40], eax
mov eax, 0x504b60
cmove eax, edx
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xa8]
mov eax, dword [eax]
mov dword [esp + 0x38], eax
mov eax, 1
shl eax, cl
cmp dword [esp + 0x9c], 1
mov esi, eax
mov dword [esp + 0x24], eax
sete byte [esp + 0x46]
cmp eax, 0x354
jbe 0x4e7016
cmp byte [esp + 0x46], 0
je 0x4e7016
add esp, 0x88
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x88
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0xa8]
movzx ecx, byte [esp + 0x28]
mov byte [esp + 0x46], 0
mov dword [esp + 0x2c], 0x13
mov byte [esp + 0x47], 0
mov eax, dword [eax]
mov dword [esp + 0x38], eax
mov eax, 1
shl eax, cl
mov dword [esp + 0x24], eax
sub eax, 1
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x40], eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0xb0]
mov ebp, dword [esp + 0x28]
xor edi, edi
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 8], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x38]
mov dword [esp], ebp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x10]
movzx ebx, byte [esp + 4]
xor edx, edx
sub bl, byte [esp + 8]
movzx eax, word [eax]
cmp eax, dword [esp + 0x2c]
mov esi, eax
jl 0x4e6c82
jle 0x4e7005
mov esi, dword [esp + 0x40]
movzx edx, byte [esi + eax*2]
mov esi, dword [esp + 0x3c]
movzx esi, word [esi + eax*2]
mov eax, dword [esp + 4]
sub eax, dword [esp + 8]
mov ebp, 1
mov dword [esp + 0x18], edi
mov ecx, eax
mov dword [esp + 0x14], eax
mov eax, 1
shl ebp, cl
movzx ecx, byte [esp]
shl eax, cl
movzx ecx, byte [esp + 0x14]
mov dword [esp + 0xc], eax
mov eax, 0xfffffffc
shl eax, cl
movzx ecx, byte [esp + 8]
mov dword [esp + 0x14], eax
mov eax, edi
mov edi, ebp
shr eax, cl
mov ecx, dword [esp + 0xc]
add ecx, eax
mov eax, dword [esp + 0x1c]
sub ecx, ebp
mov ebp, dword [esp + 0x14]
lea ecx, [eax + ecx*4]
mov eax, dword [esp + 0xc]
lea esi, [esi]
mov byte [ecx], dl
mov byte [ecx + 1], bl
mov word [ecx + 2], si
add ecx, ebp
sub eax, edi
jne 0x4e6ce0
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x18]
lea ecx, [eax - 1]
mov eax, 1
shl eax, cl
test edi, eax
je 0x4e6d19
mov ebp, dword [esp]
nop
lea esi, [esi]
shr eax, 1
test edi, eax
jne 0x4e6d10
mov dword [esp], ebp
mov esi, dword [esp + 4]
lea edx, [eax - 1]
and edx, edi
movzx edi, word [esp + esi*2 + 0x48]
add edx, eax
test eax, eax
cmovne eax, edx
lea edx, [edi - 1]
mov word [esp + 0xc], di
test dx, dx
mov word [esp + esi*2 + 0x48], dx
jne 0x4e6d63
mov edi, dword [esp + 0x20]
cmp esi, edi
je 0x4e704a
mov esi, dword [esp + 0x10]
movzx edx, word [esi + 2]
mov esi, dword [esp + 0xa0]
movzx esi, word [esi + edx*2]
mov dword [esp + 4], esi
mov ebp, dword [esp + 4]
mov ebx, dword [esp + 0x28]
cmp ebp, ebx
jbe 0x4e6ff9
mov esi, dword [esp + 0x34]
and esi, eax
cmp dword [esp + 0x30], esi
je 0x4e6ff9
mov edi, dword [esp + 8]
movzx ecx, byte [esp]
mov edx, 4
test edi, edi
cmove edi, ebx
mov ebx, dword [esp + 0x20]
shl edx, cl
mov ecx, ebp
add dword [esp + 0x1c], edx
mov edx, 1
sub ecx, edi
mov dword [esp + 8], edi
shl edx, cl
cmp ebp, ebx
jae 0x4e7011
movzx ebx, word [esp + ebp*2 + 0x48]
sub edx, ebx
test edx, edx
jle 0x4e7011
lea ebx, [ecx + 1]
mov ebp, dword [esp + 0x20]
add edx, edx
mov dword [esp], ebx
add ebx, edi
cmp ebp, ebx
jbe 0x4e6f98
movzx ebx, word [esp + ebx*2 + 0x48]
sub edx, ebx
test edx, edx
jle 0x4e6f98
lea ebx, [ecx + 2]
add edx, edx
mov dword [esp], ebx
add ebx, edi
cmp ebp, ebx
jbe 0x4e6f98
movzx ebx, word [esp + ebx*2 + 0x48]
sub edx, ebx
test edx, edx
jle 0x4e6f98
lea ebx, [ecx + 3]
add edx, edx
mov dword [esp], ebx
add ebx, edi
cmp ebp, ebx
jbe 0x4e6f98
movzx ebx, word [esp + ebx*2 + 0x48]
sub edx, ebx
test edx, edx
jle 0x4e6f98
lea ebx, [ecx + 4]
add edx, edx
mov dword [esp], ebx
add ebx, edi
cmp ebp, ebx
jbe 0x4e6f98
movzx ebx, word [esp + ebx*2 + 0x48]
sub edx, ebx
test edx, edx
jle 0x4e6f98
lea ebx, [ecx + 5]
add edx, edx
mov dword [esp], ebx
add ebx, edi
cmp ebp, ebx
jbe 0x4e6f98
movzx ebx, word [esp + ebx*2 + 0x48]
sub edx, ebx
test edx, edx
jle 0x4e6f98
lea ebx, [ecx + 6]
add edx, edx
mov dword [esp], ebx
add ebx, edi
cmp ebp, ebx
jbe 0x4e6f98
movzx ebx, word [esp + ebx*2 + 0x48]
sub edx, ebx
test edx, edx
jle 0x4e6f98
lea ebx, [ecx + 7]
add edx, edx
mov dword [esp], ebx
add ebx, edi
cmp ebp, ebx
jbe 0x4e6f98
movzx ebx, word [esp + ebx*2 + 0x48]
sub edx, ebx
test edx, edx
jle 0x4e6f98
lea ebx, [ecx + 8]
add edx, edx
mov dword [esp], ebx
add ebx, edi
cmp ebp, ebx
jbe 0x4e6f98
movzx ebx, word [esp + ebx*2 + 0x48]
sub edx, ebx
test edx, edx
jle 0x4e6f98
lea ebx, [ecx + 9]
add edx, edx
mov dword [esp], ebx
add ebx, edi
cmp ebp, ebx
jbe 0x4e6f98
movzx ebx, word [esp + ebx*2 + 0x48]
sub edx, ebx
test edx, edx
jle 0x4e6f98
lea ebx, [ecx + 0xa]
add edx, edx
mov dword [esp], ebx
add ebx, edi
cmp ebp, ebx
jbe 0x4e6f98
movzx ebx, word [esp + ebx*2 + 0x48]
sub edx, ebx
test edx, edx
jle 0x4e6f98
lea ebx, [ecx + 0xb]
add edx, edx
mov dword [esp], ebx
add ebx, edi
cmp ebp, ebx
jbe 0x4e6f98
movzx ebx, word [esp + ebx*2 + 0x48]
sub edx, ebx
test edx, edx
jle 0x4e6f98
lea ebx, [ecx + 0xc]
add edx, edx
mov dword [esp], ebx
add ebx, edi
cmp ebp, ebx
jbe 0x4e6f98
movzx ebx, word [esp + ebx*2 + 0x48]
sub edx, ebx
test edx, edx
jle 0x4e6f98
lea ebx, [ecx + 0xd]
add edx, edx
mov dword [esp], ebx
add ebx, edi
cmp ebp, ebx
jbe 0x4e6f98
movzx ebx, word [esp + ebx*2 + 0x48]
sub edx, ebx
test edx, edx
jle 0x4e6f98
lea ebx, [ecx + 0xe]
add edx, edx
mov dword [esp], ebx
add ebx, edi
cmp ebp, ebx
jbe 0x4e6f98
movzx ebx, word [esp + ebx*2 + 0x48]
sub edx, ebx
test edx, edx
jle 0x4e6f98
lea ebx, [ecx + 0xf]
add edx, edx
mov dword [esp], ebx
add ebx, edi
cmp ebp, ebx
jbe 0x4e6f98
movzx ebx, word [esp + ebx*2 + 0x48]
add ecx, 0x10
sub edx, ebx
test edx, edx
cmovle ecx, dword [esp]
mov dword [esp], ecx
movzx ecx, byte [esp]
mov edx, 1
shl edx, cl
add dword [esp + 0x24], edx
mov ebx, dword [esp + 0x24]
cmp ebx, 0x354
jbe 0x4e6fbe
cmp byte [esp + 0x46], 0
jne 0x4e6bc1
cmp dword [esp + 0x24], 0x250
jbe 0x4e6fd3
cmp byte [esp + 0x47], 0
jne 0x4e6bc1
mov edi, dword [esp + 0x38]
movzx ebx, byte [esp]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x30], esi
lea edx, [edi + esi*4]
sub ecx, edi
mov byte [edx], bl
movzx ebx, byte [esp + 0x28]
sar ecx, 2
mov word [edx + 2], cx
mov byte [edx + 1], bl
add dword [esp + 0x10], 2
mov edi, eax
jmp 0x4e6c52
xor esi, esi
mov edx, 0x60
jmp 0x4e6c82
mov dword [esp], ecx
jmp 0x4e6f98
mov eax, esi
sub eax, 1
cmp dword [esp + 0x9c], 2
mov dword [esp + 0x34], eax
sete byte [esp + 0x47]
cmp esi, 0x250
movzx eax, byte [esp + 0x47]
jbe 0x4e6c26
test al, al
jne 0x4e6bc1
jmp 0x4e6c26
test eax, eax
je 0x4e7061
mov esi, dword [esp + 0x1c]
xor edx, edx
lea eax, [esi + eax*4]
mov byte [eax], 0x40
mov byte [eax + 1], bl
mov word [eax + 2], dx
mov esi, dword [esp + 0x24]
mov eax, dword [esp + 0x38]
lea eax, [eax + esi*4]
mov esi, dword [esp + 0xa8]
mov dword [esi], eax
mov eax, dword [esp + 0xac]
mov esi, dword [esp + 0x28]
mov dword [eax], esi
xor eax, eax
jmp 0x4e67d6
mov eax, dword [esp + 0xac]
mov ebp, 1
mov dword [esp + 0x20], 1
mov eax, dword [eax]
test eax, eax
cmove ebp, eax
mov dword [esp], ebp
movzx ebx, word [esp + 0x4a]
mov ecx, 2
mov eax, 0xffffffff
sub ecx, ebx
mov edi, ebx
js 0x4e67d6
mov dword [esp + 4], 1
jmp 0x4e6938
mov dword [esp + 4], 2
jmp 0x4e6928
mov dword [esp + 4], 0xa
jmp 0x4e6928
mov dword [esp + 4], 9
jmp 0x4e6928
mov dword [esp + 4], 8
jmp 0x4e6928
mov dword [esp + 4], 7
jmp 0x4e6928
mov dword [esp + 4], 6
jmp 0x4e6928
mov dword [esp + 4], 5
jmp 0x4e6928
mov dword [esp + 4], 4
jmp 0x4e6928
mov dword [esp + 4], 3
jmp 0x4e6928
mov dword [esp + 4], 0xd
jmp 0x4e6928
mov dword [esp + 4], 0xc
jmp 0x4e6928
mov dword [esp + 4], 0xb
jmp 0x4e6928
mov dword [esp + 0x20], 0xe
jmp 0x4e67f0
mov dword [esp + 0x20], 0xd
jmp 0x4e67f0
mov dword [esp + 0x20], 0xc
jmp 0x4e67f0
mov dword [esp + 0x20], 0xb
jmp 0x4e67f0
mov dword [esp + 0x20], 0xa
jmp 0x4e67f0
mov dword [esp + 0x20], 9
jmp 0x4e67f0
mov dword [esp + 0x20], 7
jmp 0x4e67f0
mov dword [esp + 0x20], 8
jmp 0x4e67f0
mov dword [esp + 0x20], 4
jmp 0x4e67f0
mov dword [esp + 0x20], 5
jmp 0x4e67f0
mov dword [esp + 0x20], 6
jmp 0x4e67f0
mov dword [esp + 0x20], 2
jmp 0x4e67f0
mov dword [esp + 4], 0xe
jmp 0x4e6928
mov dword [esp + 0x20], 3
jmp 0x4e67f0