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

Disassembly:
push ebp
push edi
xor eax, eax
push esi
push ebx
sub esp, 0x84
mov esi, dword [esp + 0xa0]
mov dword [esp + eax + 0x44], 0
add eax, 4
cmp eax, 0x20
jb 0x485663
mov eax, dword [esp + 0x9c]
test esi, esi
lea ecx, [eax + esi*2]
je 0x485691
movzx edx, word [eax]
add eax, 2
add word [esp + edx*2 + 0x44], 1
cmp eax, ecx
jne 0x485681
movzx ebx, word [esp + 0x62]
test bx, bx
jne 0x485797
cmp word [esp + 0x60], 0
jne 0x486171
cmp word [esp + 0x5e], 0
jne 0x48617e
cmp word [esp + 0x5c], 0
jne 0x48618b
cmp word [esp + 0x5a], 0
jne 0x486198
cmp word [esp + 0x58], 0
jne 0x4861a5
cmp word [esp + 0x56], 0
jne 0x4861b2
cmp word [esp + 0x54], 0
jne 0x4861cc
cmp word [esp + 0x52], 0
jne 0x4861bf
cmp word [esp + 0x50], 0
jne 0x4861f3
cmp word [esp + 0x4e], 0
jne 0x4861e6
cmp word [esp + 0x4c], 0
jne 0x4861d9
cmp word [esp + 0x4a], 0
jne 0x48621a
cmp word [esp + 0x48], 0
jne 0x486200
cmp word [esp + 0x46], 0
jne 0x486091
mov eax, dword [esp + 0xa4]
mov ebx, dword [esp + 0xa4]
xor ecx, ecx
mov eax, dword [eax]
lea edx, [eax + 4]
mov dword [ebx], edx
xor edx, edx
mov byte [eax], 0x40
mov word [eax + 2], dx
mov byte [eax + 1], 1
mov eax, dword [ebx]
lea edx, [eax + 4]
mov dword [ebx], edx
mov byte [eax], 0x40
mov byte [eax + 1], 1
mov word [eax + 2], cx
mov eax, dword [esp + 0xa8]
mov dword [eax], 1
xor eax, eax
add esp, 0x84
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x24], 0xf
nop
mov eax, dword [esp + 0xa8]
mov edi, dword [esp + 0x24]
mov eax, dword [eax]
cmp edi, eax
cmovbe eax, edi
cmp word [esp + 0x46], 0
mov dword [esp], eax
jne 0x4860af
cmp edi, 2
je 0x4860d5
cmp word [esp + 0x48], 0
jne 0x4860d5
cmp edi, 3
je 0x48613d
cmp word [esp + 0x4a], 0
jne 0x48613d
cmp edi, 4
je 0x486130
cmp word [esp + 0x4c], 0
jne 0x486130
cmp edi, 5
je 0x486123
cmp word [esp + 0x4e], 0
jne 0x486123
cmp edi, 6
je 0x486116
cmp word [esp + 0x50], 0
jne 0x486116
cmp edi, 7
je 0x486109
cmp word [esp + 0x52], 0
jne 0x486109
cmp edi, 8
je 0x4860fc
cmp word [esp + 0x54], 0
jne 0x4860fc
cmp edi, 9
je 0x4860ef
cmp word [esp + 0x56], 0
jne 0x4860ef
cmp edi, 0xa
je 0x4860e2
cmp word [esp + 0x58], 0
jne 0x4860e2
cmp edi, 0xb
je 0x486164
cmp word [esp + 0x5a], 0
jne 0x486164
cmp edi, 0xc
je 0x486157
cmp word [esp + 0x5c], 0
jne 0x486157
cmp edi, 0xd
je 0x48614a
cmp word [esp + 0x5e], 0
jne 0x48614a
cmp edi, 0xf
jne 0x48620d
cmp word [esp + 0x60], 1
sbb eax, eax
not eax
add eax, 0xf
mov dword [esp + 4], eax
movzx edx, word [esp + 0x46]
mov eax, 2
sub eax, edx
mov edi, edx
mov edx, eax
lea eax, [edx + edx]
movzx edx, word [esp + 0x48]
sub eax, edx
mov ecx, edx
js 0x486021
movzx edx, word [esp + 0x4a]
add eax, eax
sub eax, edx
mov word [esp + 0xc], dx
js 0x486021
movzx edx, word [esp + 0x4c]
add eax, eax
sub eax, edx
mov word [esp + 8], dx
js 0x486021
movzx edx, word [esp + 0x4e]
add eax, eax
sub eax, edx
mov word [esp + 0x14], dx
js 0x486021
movzx edx, word [esp + 0x50]
add eax, eax
sub eax, edx
mov word [esp + 0x10], dx
js 0x486021
movzx edx, word [esp + 0x52]
add eax, eax
sub eax, edx
mov word [esp + 0x18], dx
js 0x486021
movzx edx, word [esp + 0x54]
add eax, eax
sub eax, edx
mov word [esp + 0x20], dx
js 0x486021
movzx edx, word [esp + 0x56]
add eax, eax
sub eax, edx
mov word [esp + 0x1c], dx
js 0x486021
movzx edx, word [esp + 0x58]
add eax, eax
sub eax, edx
mov word [esp + 0x40], dx
js 0x486021
movzx edx, word [esp + 0x5a]
add eax, eax
sub eax, edx
mov word [esp + 0x2c], dx
js 0x486021
movzx edx, word [esp + 0x5c]
add eax, eax
sub eax, edx
mov word [esp + 0x28], dx
js 0x486021
movzx edx, word [esp + 0x5e]
add eax, eax
sub eax, edx
mov word [esp + 0x30], dx
js 0x486021
lea ebp, [eax + eax]
movzx eax, word [esp + 0x60]
sub ebp, eax
mov edx, eax
mov eax, ebp
js 0x486021
add eax, eax
cmp eax, ebx
js 0x486021
je 0x485a0f
mov ebp, dword [esp + 0x98]
test ebp, ebp
je 0x486021
cmp dword [esp + 0x24], 1
jne 0x486021
add ecx, edi
movzx eax, word [esp + 0x18]
xor ebx, ebx
mov word [esp + 0x6a], cx
add cx, word [esp + 0xc]
mov word [esp + 0x66], bx
mov word [esp + 0x68], di
mov word [esp + 0x6c], cx
add cx, word [esp + 8]
mov word [esp + 0x6e], cx
add cx, word [esp + 0x14]
mov word [esp + 0x70], cx
add cx, word [esp + 0x10]
add eax, ecx
mov word [esp + 0x72], cx
mov word [esp + 0x74], ax
add ax, word [esp + 0x20]
mov word [esp + 0x76], ax
add ax, word [esp + 0x1c]
mov word [esp + 0x78], ax
add ax, word [esp + 0x40]
mov word [esp + 0x7a], ax
add ax, word [esp + 0x2c]
mov word [esp + 0x7c], ax
add ax, word [esp + 0x28]
mov word [esp + 0x7e], ax
add ax, word [esp + 0x30]
mov word [esp + 0x80], ax
add eax, edx
mov word [esp + 0x82], ax
xor eax, eax
test esi, esi
je 0x485ad4
mov ebx, dword [esp + 0x9c]
mov edi, dword [esp + 0xac]
movzx edx, word [ebx + eax*2]
test dx, dx
je 0x485acd
movzx ecx, word [esp + edx*2 + 0x64]
lea ebp, [ecx + 1]
mov word [edi + ecx*2], ax
mov word [esp + edx*2 + 0x64], bp
add eax, 1
cmp esi, eax
jne 0x485ab3
mov ecx, dword [esp + 0x98]
test ecx, ecx
je 0x486031
cmp dword [esp + 0x98], 1
jne 0x485f9c
mov ebx, dword [esp + 4]
mov eax, dword [esp]
cmp ebx, eax
cmovae eax, ebx
mov ebx, dword [esp + 0x98]
mov ecx, eax
mov dword [esp + 0x1c], eax
shl ebx, cl
cmp ebx, 0x354
mov eax, ebx
ja 0x486011
mov byte [esp + 0x43], 0
mov byte [esp + 0x42], 1
mov dword [esp + 0x2c], 0x101
mov dword [esp + 0x3c], 0x661600
mov dword [esp + 0x38], 0x661640
mov ebx, dword [esp + 0xa4]
mov dword [esp + 0x20], eax
xor edi, edi
sub eax, 1
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 0xc], 0
mov dword [esp + 0x34], eax
mov dword [esp + 8], edi
mov ebx, dword [ebx]
mov dword [esp + 0x18], ebx
mov ebx, dword [esp + 0xac]
mov dword [esp + 0x14], ebx
mov ebx, dword [esp + 0x1c]
mov dword [esp + 0x10], ebx
lea esi, [esi]
movzx eax, byte [esp + 4]
mov edi, dword [esp + 0x2c]
xor ebx, ebx
sub al, byte [esp + 0xc]
mov byte [esp + 0x40], al
mov eax, dword [esp + 0x14]
movzx eax, word [eax]
lea edx, [eax + 1]
mov esi, eax
cmp edx, edi
jb 0x485bbd
cmp eax, edi
jb 0x485f90
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x38]
sub eax, edi
movzx ebx, byte [ebx + eax*2]
movzx esi, word [esi + eax*2]
mov ecx, dword [esp + 4]
sub ecx, dword [esp + 0xc]
mov edx, 1
mov eax, 1
shl edx, cl
movzx ecx, byte [esp + 0x10]
mov dword [esp], edx
shl eax, cl
movzx ecx, byte [esp + 0xc]
mov ebp, eax
mov dword [esp + 0x28], eax
lea eax, [edx*4]
mov edi, eax
mov eax, dword [esp + 8]
neg edi
shr eax, cl
mov ecx, ebp
add eax, ebp
mov ebp, dword [esp + 0x18]
sub eax, edx
lea eax, [ebp + eax*4]
mov ebp, ebx
movzx ebx, byte [esp + 0x40]
lea esi, [esi]
mov edx, ebp
mov byte [eax + 1], bl
mov word [eax + 2], si
mov byte [eax], dl
add eax, edi
sub ecx, dword [esp]
jne 0x485c10
mov eax, dword [esp + 4]
mov ebx, dword [esp + 8]
lea ecx, [eax - 1]
mov eax, 1
shl eax, cl
test ebx, eax
je 0x485c4a
mov ebp, ebx
lea esi, [esi]
shr eax, 1
test ebp, eax
jne 0x485c40
mov dword [esp + 8], ebp
test eax, eax
je 0x485f70
lea edx, [eax - 1]
and edx, dword [esp + 8]
add eax, edx
mov dword [esp + 8], eax
mov ebx, dword [esp + 4]
movzx eax, word [esp + ebx*2 + 0x44]
mov word [esp], ax
sub eax, 1
test ax, ax
mov word [esp + ebx*2 + 0x44], ax
jne 0x485c9c
mov eax, dword [esp + 0x24]
cmp ebx, eax
je 0x48604d
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0x9c]
movzx eax, word [eax + 2]
movzx eax, word [ebx + eax*2]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
mov edi, dword [esp + 0x1c]
cmp eax, edi
jbe 0x485f66
mov ebx, dword [esp + 0x34]
and ebx, dword [esp + 8]
cmp dword [esp + 0x30], ebx
je 0x485f66
mov esi, dword [esp + 0xc]
mov ebp, dword [esp + 0x24]
test esi, esi
cmove esi, edi
mov edi, dword [esp + 0x28]
mov edx, esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0xc], edx
lea esi, [esi + edi*4]
mov edi, eax
sub edi, edx
mov dword [esp + 0x18], esi
mov ecx, edi
mov esi, eax
mov eax, 1
mov dword [esp + 0x10], edi
shl eax, cl
cmp esi, ebp
jae 0x485ee5
movzx edx, word [esp + esi*2 + 0x44]
sub eax, edx
test eax, eax
jle 0x485ee5
mov esi, dword [esp + 0xc]
lea edx, [edi + 1]
add eax, eax
lea ecx, [esi + edx]
cmp ecx, ebp
jae 0x485f80
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x485f80
lea edx, [edi + 2]
add eax, eax
lea ecx, [esi + edx]
cmp ecx, ebp
jae 0x485f80
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x485f80
lea edx, [edi + 3]
add eax, eax
lea ecx, [esi + edx]
cmp ecx, ebp
jae 0x485f80
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x485f80
lea edx, [edi + 4]
add eax, eax
lea ecx, [esi + edx]
cmp ecx, ebp
jae 0x485f80
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x485f80
lea edx, [edi + 5]
add eax, eax
lea ecx, [esi + edx]
cmp ecx, ebp
jae 0x485f80
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x485f80
lea edx, [edi + 6]
add eax, eax
lea ecx, [esi + edx]
cmp ecx, ebp
jae 0x485f80
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x485f80
lea edx, [edi + 7]
add eax, eax
lea ecx, [esi + edx]
cmp ecx, ebp
jae 0x485f80
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x485f80
lea edx, [edi + 8]
add eax, eax
lea ecx, [esi + edx]
cmp ecx, ebp
jae 0x485f80
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x485f80
lea edx, [edi + 9]
add eax, eax
lea ecx, [esi + edx]
cmp ecx, ebp
jae 0x485f80
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x485f80
lea edx, [edi + 0xa]
add eax, eax
lea ecx, [esi + edx]
cmp ecx, ebp
jae 0x485f80
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x485f80
lea edx, [edi + 0xb]
add eax, eax
lea ecx, [esi + edx]
cmp ecx, ebp
jae 0x485f80
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x485f80
lea edx, [edi + 0xc]
add eax, eax
lea ecx, [esi + edx]
cmp ecx, ebp
jae 0x485f80
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x485f80
lea edx, [edi + 0xd]
add eax, eax
lea ecx, [esi + edx]
cmp ecx, ebp
jae 0x485f80
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x485f80
lea edx, [edi + 0xe]
add eax, eax
lea ecx, [esi + edx]
cmp ecx, ebp
jae 0x485f80
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x485f80
lea edx, [edi + 0xf]
add eax, eax
lea ecx, [esi + edx]
cmp ecx, ebp
jae 0x485f80
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
mov ecx, edi
add ecx, 0x10
test eax, eax
cmovg edx, ecx
mov dword [esp + 0x10], edx
movzx ecx, byte [esp + 0x10]
mov eax, 1
shl eax, cl
add dword [esp + 0x20], eax
mov esi, dword [esp + 0x20]
cmp esi, 0x354
jbe 0x485f0c
cmp byte [esp + 0x42], 0
jne 0x486011
cmp dword [esp + 0x20], 0x250
jbe 0x485f21
cmp byte [esp + 0x43], 0
jne 0x486011
mov eax, dword [esp + 0xa4]
movzx ecx, byte [esp + 0x10]
lea edx, [ebx*4]
mov dword [esp + 0x30], ebx
mov eax, dword [eax]
mov byte [eax + ebx*4], cl
mov eax, dword [esp + 0xa4]
movzx ecx, byte [esp + 0x1c]
mov eax, dword [eax]
mov byte [eax + edx + 1], cl
mov eax, dword [esp + 0xa4]
mov ecx, dword [eax]
mov eax, dword [esp + 0x18]
sub eax, ecx
sar eax, 2
mov word [ecx + edx + 2], ax
add dword [esp + 0x14], 2
jmp 0x485b80
mov dword [esp + 8], 0
jmp 0x485c5f
mov dword [esp + 0x10], edx
jmp 0x485ee5
xor esi, esi
mov ebx, 0x60
jmp 0x485bbd
mov dword [esp + 0x2c], 0
mov dword [esp + 0x3c], 0x661580
mov dword [esp + 0x38], 0x6615c0
mov ebx, dword [esp + 4]
mov eax, dword [esp]
cmp ebx, eax
cmovae eax, ebx
mov ebx, eax
mov dword [esp + 0x1c], eax
mov eax, 1
mov ecx, ebx
shl eax, cl
cmp dword [esp + 0x98], 1
sete byte [esp + 0x42]
cmp eax, 0x354
movzx ebx, byte [esp + 0x42]
jbe 0x485fec
test bl, bl
jne 0x486011
cmp dword [esp + 0x98], 2
sete byte [esp + 0x43]
cmp eax, 0x250
movzx ebx, byte [esp + 0x43]
jbe 0x485b3c
test bl, bl
je 0x485b3c
add esp, 0x84
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x84
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0xac]
mov dword [esp + 0x2c], 0x14
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], eax
jmp 0x485fb4
mov edi, dword [esp + 8]
test edi, edi
je 0x48606d
mov eax, dword [esp + 0x18]
movzx ebx, byte [esp + 0x40]
xor edx, edx
lea eax, [eax + edi*4]
mov byte [eax], 0x40
mov byte [eax + 1], bl
mov word [eax + 2], dx
mov ebx, dword [esp + 0xa4]
mov eax, dword [esp + 0x20]
shl eax, 2
add dword [ebx], eax
mov eax, dword [esp + 0xa8]
mov ebx, dword [esp + 0x1c]
mov dword [eax], ebx
xor eax, eax
jmp 0x48578c
mov eax, dword [esp + 0xa8]
mov dword [esp + 0x24], 1
mov edx, dword [eax]
mov eax, 1
test edx, edx
cmove eax, edx
mov dword [esp], eax
movzx ecx, word [esp + 0x46]
mov edx, 2
mov eax, 0xffffffff
sub edx, ecx
mov edi, ecx
js 0x48578c
mov dword [esp + 4], 1
jmp 0x4858e7
mov dword [esp + 4], 2
jmp 0x4858d7
mov dword [esp + 4], 0xa
jmp 0x4858d7
mov dword [esp + 4], 9
jmp 0x4858d7
mov dword [esp + 4], 8
jmp 0x4858d7
mov dword [esp + 4], 7
jmp 0x4858d7
mov dword [esp + 4], 6
jmp 0x4858d7
mov dword [esp + 4], 5
jmp 0x4858d7
mov dword [esp + 4], 4
jmp 0x4858d7
mov dword [esp + 4], 3
jmp 0x4858d7
mov dword [esp + 4], 0xd
jmp 0x4858d7
mov dword [esp + 4], 0xc
jmp 0x4858d7
mov dword [esp + 4], 0xb
jmp 0x4858d7
mov dword [esp + 0x24], 0xe
jmp 0x4857a0
mov dword [esp + 0x24], 0xd
jmp 0x4857a0
mov dword [esp + 0x24], 0xc
jmp 0x4857a0
mov dword [esp + 0x24], 0xb
jmp 0x4857a0
mov dword [esp + 0x24], 0xa
jmp 0x4857a0
mov dword [esp + 0x24], 9
jmp 0x4857a0
mov dword [esp + 0x24], 7
jmp 0x4857a0
mov dword [esp + 0x24], 8
jmp 0x4857a0
mov dword [esp + 0x24], 4
jmp 0x4857a0
mov dword [esp + 0x24], 5
jmp 0x4857a0
mov dword [esp + 0x24], 6
jmp 0x4857a0
mov dword [esp + 0x24], 2
jmp 0x4857a0
mov dword [esp + 4], 0xe
jmp 0x4858d7
mov dword [esp + 0x24], 3
jmp 0x4857a0