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

Disassembly:
push ebp
xor edx, edx
xor eax, eax
push edi
push esi
push ebx
sub esp, 0x88
mov ecx, dword [esp + 0xa4]
mov dword [esp + eax + 0x48], edx
add eax, 4
cmp eax, 0x20
jb 0x631d5b25
mov eax, dword [esp + 0xa0]
lea ebx, [eax + ecx*2]
test ecx, ecx
je 0x631d5b50
nop
movzx edx, word [eax]
add eax, 2
add word [esp + edx*2 + 0x48], 1
cmp ebx, eax
jne 0x631d5b40
movzx ebx, word [esp + 0x66]
test bx, bx
jne 0x631d5c42
cmp word [esp + 0x64], 0
jne 0x631d6010
cmp word [esp + 0x62], 0
jne 0x631d6580
cmp word [esp + 0x60], 0
jne 0x631d65ac
cmp word [esp + 0x5e], 0
jne 0x631d6596
cmp word [esp + 0x5c], 0
jne 0x631d65cb
cmp word [esp + 0x5a], 0
jne 0x631d65f7
cmp word [esp + 0x58], 0
jne 0x631d65e1
cmp word [esp + 0x56], 0
jne 0x631d6623
cmp word [esp + 0x54], 0
jne 0x631d660d
cmp word [esp + 0x52], 0
jne 0x631d666c
cmp word [esp + 0x50], 0
jne 0x631d6656
cmp word [esp + 0x4e], 0
jne 0x631d669c
cmp word [esp + 0x4c], 0
jne 0x631d6682
cmp word [esp + 0x4a], 0
jne 0x631d66c6
mov eax, dword [esp + 0xa8]
mov edi, dword [esp + 0xa8]
mov eax, dword [eax]
lea edx, [eax + 8]
mov dword [eax], 0x140
mov dword [edi], edx
mov dword [eax + 4], 0x140
mov eax, dword [esp + 0xac]
mov dword [eax], 1
xor eax, eax
add esp, 0x88
pop ebx
pop esi
pop edi
pop ebp
ret
cmp word [esp + 0x4a], 0
jne 0x631d67fd
mov ebp, 0xf
cmp word [esp + 0x4c], 0
jne 0x631d6814
cmp word [esp + 0x4e], 0
jne 0x631d6039
cmp ebp, 4
je 0x631d66ef
cmp word [esp + 0x50], 0
jne 0x631d66e5
cmp ebp, 5
je 0x631d66d8
cmp word [esp + 0x52], 0
jne 0x631d66fc
cmp ebp, 6
je 0x631d6710
cmp word [esp + 0x54], 0
jne 0x631d6706
cmp ebp, 7
je 0x631d6727
cmp word [esp + 0x56], 0
jne 0x631d671d
cmp ebp, 8
je 0x631d673d
cmp word [esp + 0x58], 0
jne 0x631d674a
cmp ebp, 9
je 0x631d675e
cmp word [esp + 0x5a], 0
jne 0x631d6754
cmp ebp, 0xa
je 0x631d6775
cmp word [esp + 0x5c], 0
jne 0x631d676b
cmp ebp, 0xb
je 0x631d678c
cmp word [esp + 0x5e], 0
jne 0x631d6782
cmp ebp, 0xc
je 0x631d67ba
cmp word [esp + 0x60], 0
jne 0x631d67b0
cmp ebp, 0xd
je 0x631d67a3
cmp word [esp + 0x62], 0
jne 0x631d6799
cmp ebp, 0xf
jne 0x631d67c7
cmp word [esp + 0x64], 0
mov dword [esp + 0xc], 0xf
mov eax, 0xe
jne 0x631d603e
nop
movzx esi, word [esp + 0x4a]
mov eax, 2
mov edx, esi
sub eax, esi
js 0x631d6000
movzx esi, word [esp + 0x4c]
add eax, eax
mov edi, esi
sub eax, esi
js 0x631d6000
movzx esi, word [esp + 0x4e]
add eax, eax
mov word [esp + 4], si
sub eax, esi
js 0x631d6000
movzx esi, word [esp + 0x50]
add eax, eax
mov word [esp + 8], si
sub eax, esi
js 0x631d6000
movzx esi, word [esp + 0x52]
add eax, eax
mov word [esp + 0x10], si
sub eax, esi
js 0x631d6000
movzx esi, word [esp + 0x54]
add eax, eax
mov word [esp + 0x14], si
sub eax, esi
js 0x631d6000
movzx esi, word [esp + 0x56]
add eax, eax
mov word [esp + 0x44], si
sub eax, esi
js 0x631d6000
movzx esi, word [esp + 0x58]
add eax, eax
mov word [esp + 0x18], si
sub eax, esi
js 0x631d6000
movzx esi, word [esp + 0x5a]
add eax, eax
mov word [esp + 0x1c], si
sub eax, esi
js 0x631d6000
movzx esi, word [esp + 0x5c]
add eax, eax
mov word [esp + 0x20], si
sub eax, esi
js 0x631d6000
movzx esi, word [esp + 0x5e]
add eax, eax
mov word [esp + 0x24], si
sub eax, esi
js 0x631d6000
movzx esi, word [esp + 0x60]
add eax, eax
mov word [esp + 0x28], si
sub eax, esi
js 0x631d6000
movzx esi, word [esp + 0x62]
add eax, eax
mov word [esp + 0x2c], si
sub eax, esi
js 0x631d6000
lea esi, [eax + eax]
movzx eax, word [esp + 0x64]
sub esi, eax
mov word [esp], ax
mov eax, esi
js 0x631d6000
add eax, eax
cmp eax, ebx
js 0x631d6000
je 0x631d5e9d
mov esi, dword [esp + 0x9c]
test esi, esi
je 0x631d6000
cmp dword [esp + 0xc], 1
jne 0x631d6000
mov word [esp + 0x6c], dx
add edx, edi
mov eax, dword [esp + 0xac]
xor ebx, ebx
mov word [esp + 0x6e], dx
add dx, word [esp + 4]
mov word [esp + 0x70], dx
add dx, word [esp + 8]
mov word [esp + 0x72], dx
add dx, word [esp + 0x10]
mov word [esp + 0x74], dx
add dx, word [esp + 0x14]
mov word [esp + 0x76], dx
add dx, word [esp + 0x44]
mov word [esp + 0x78], dx
add dx, word [esp + 0x18]
mov word [esp + 0x7a], dx
add dx, word [esp + 0x1c]
mov word [esp + 0x7c], dx
add dx, word [esp + 0x20]
mov word [esp + 0x7e], dx
add dx, word [esp + 0x24]
mov word [esp + 0x80], dx
add dx, word [esp + 0x28]
mov eax, dword [eax]
mov word [esp + 0x82], dx
add dx, word [esp + 0x2c]
mov word [esp + 0x6a], bx
mov word [esp + 0x84], dx
add dx, word [esp]
mov dword [esp + 0x30], eax
mov word [esp + 0x86], dx
test ecx, ecx
je 0x631d5f85
mov dword [esp], ebp
mov esi, dword [esp + 0xa0]
xor eax, eax
mov ebp, dword [esp + 0xb0]
nop
lea esi, [esi]
movzx edx, word [esi + eax*2]
test dx, dx
je 0x631d5f7b
movzx ebx, word [esp + edx*2 + 0x68]
lea edi, [ebx + 1]
mov word [ebp + ebx*2], ax
mov word [esp + edx*2 + 0x68], di
add eax, 1
cmp ecx, eax
jne 0x631d5f60
mov ebp, dword [esp]
mov edi, dword [esp + 0xc]
mov eax, dword [esp + 0x30]
cmp eax, edi
cmova eax, edi
cmp ebp, eax
cmovae eax, ebp
mov edi, eax
mov dword [esp + 0x24], eax
mov eax, 1
mov ecx, edi
shl eax, cl
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x9c]
test eax, eax
je 0x631d6080
cmp dword [esp + 0x9c], 1
je 0x631d6049
cmp dword [esp + 0x9c], 2
sete byte [esp + 0x46]
cmp dword [esp + 0x34], 0x250
movzx eax, byte [esp + 0x46]
jbe 0x631d6639
test al, al
je 0x631d6639
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
cmp word [esp + 0x4a], 0
jne 0x631d656a
cmp word [esp + 0x4c], 0
mov ebp, 0xe
jne 0x631d6814
cmp word [esp + 0x4e], 0
je 0x631d5c74
mov eax, 3
mov dword [esp + 0xc], ebp
mov ebp, eax
jmp 0x631d5d60
cmp dword [esp + 0x34], 0x354
ja 0x631d5fef
mov dword [esp + 0x28], 0x101
mov dword [esp + 0x38], 0x633cccc0
mov dword [esp + 0x3c], 0x633ccd00
mov byte [esp + 0x47], 1
mov byte [esp + 0x46], 0
jmp 0x631d60a9
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x28], 0x14
mov byte [esp + 0x46], 0
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
cmp dword [esp + 0x9c], 1
sete byte [esp + 0x47]
mov eax, dword [esp + 0xa8]
mov edi, dword [esp + 0xb0]
mov dword [esp + 4], ebp
mov dword [esp + 0x30], 0xffffffff
mov eax, dword [eax]
mov dword [esp + 8], 0
mov dword [esp + 0x10], edi
xor edi, edi
mov dword [esp + 0x40], eax
mov ebp, edi
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x14], eax
lea esi, [esi]
movzx eax, byte [esp + 4]
sub al, byte [esp + 8]
xor edi, edi
mov byte [esp + 0x44], al
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x28]
movzx eax, word [eax]
lea edx, [eax + 1]
mov esi, eax
cmp edx, ebx
jb 0x631d612d
cmp eax, ebx
jb 0x631d6240
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x3c]
sub eax, ebx
movzx edi, byte [edi + eax*2]
movzx esi, word [esi + eax*2]
mov eax, dword [esp + 4]
sub eax, dword [esp + 8]
mov edx, 1
mov ebx, 0xfffffffc
mov ecx, eax
mov dword [esp + 0x18], eax
mov eax, 1
shl edx, cl
movzx ecx, byte [esp + 0x14]
shl eax, cl
movzx ecx, byte [esp + 0x18]
mov dword [esp + 0x18], ebp
mov dword [esp], eax
mov eax, ebp
movzx ebp, byte [esp + 0x44]
shl ebx, cl
movzx ecx, byte [esp + 8]
mov dword [esp + 0x1c], ebx
mov ebx, edi
mov edi, dword [esp + 0x1c]
shr eax, cl
mov ecx, dword [esp]
add ecx, eax
mov eax, dword [esp + 0x20]
sub ecx, edx
lea ecx, [eax + ecx*4]
mov eax, dword [esp]
mov byte [esp], bl
lea esi, [esi]
movzx ebx, byte [esp]
mov word [ecx + 2], si
mov byte [ecx], bl
mov ebx, ebp
mov byte [ecx + 1], bl
add ecx, edi
sub eax, edx
jne 0x631d6190
mov eax, dword [esp + 4]
mov ebp, dword [esp + 0x18]
lea ecx, [eax - 1]
mov eax, 1
shl eax, cl
test ebp, eax
je 0x631d61c6
nop
lea esi, [esi]
shr eax, 1
test ebp, eax
jne 0x631d61c0
test eax, eax
je 0x631d61d1
lea edx, [eax - 1]
and edx, ebp
add eax, edx
mov edi, dword [esp + 4]
movzx esi, word [esp + edi*2 + 0x48]
lea edx, [esi - 1]
mov word [esp], si
mov word [esp + edi*2 + 0x48], dx
test dx, dx
jne 0x631d620e
mov esi, dword [esp + 0xc]
cmp edi, esi
je 0x631d6526
mov edi, dword [esp + 0x10]
movzx edx, word [edi + 2]
mov edi, dword [esp + 0xa0]
movzx edi, word [edi + edx*2]
mov dword [esp + 4], edi
mov ebp, dword [esp + 4]
mov edx, dword [esp + 0x24]
mov esi, ebp
cmp ebp, edx
jbe 0x631d622b
mov edi, dword [esp + 0x34]
sub edi, 1
and edi, eax
cmp edi, dword [esp + 0x30]
jne 0x631d6250
add dword [esp + 0x10], 2
mov ebp, eax
jmp 0x631d60f0
xor esi, esi
mov edi, 0x60
jmp 0x631d612d
mov ebx, dword [esp + 8]
movzx ecx, byte [esp + 0x14]
test ebx, ebx
cmove ebx, edx
mov edx, 4
shl edx, cl
add dword [esp + 0x20], edx
mov edx, 1
sub esi, ebx
mov dword [esp + 8], ebx
mov ecx, esi
mov ebx, esi
mov dword [esp + 0x14], esi
mov esi, dword [esp + 0xc]
shl edx, cl
cmp ebp, esi
jae 0x631d64b0
movzx ecx, word [esp + ebp*2 + 0x48]
sub edx, ecx
test edx, edx
jle 0x631d64b0
mov ebp, dword [esp + 8]
lea ecx, [ebx + 1]
mov esi, ebx
add edx, edx
lea ebx, [ebp + ecx]
cmp ebx, dword [esp + 0xc]
jae 0x631d6520
movzx ebx, word [esp + ebx*2 + 0x48]
sub edx, ebx
test edx, edx
jle 0x631d6520
lea ecx, [esi + 2]
add edx, edx
lea ebx, [ebp + ecx]
cmp ebx, dword [esp + 0xc]
jae 0x631d6520
movzx ebx, word [esp + ebx*2 + 0x48]
sub edx, ebx
test edx, edx
jle 0x631d6520
lea ecx, [esi + 3]
add edx, edx
lea ebx, [ebp + ecx]
cmp ebx, dword [esp + 0xc]
jae 0x631d6520
movzx ebx, word [esp + ebx*2 + 0x48]
sub edx, ebx
test edx, edx
jle 0x631d6520
lea ecx, [esi + 4]
add edx, edx
lea ebx, [ebp + ecx]
cmp ebx, dword [esp + 0xc]
jae 0x631d6520
movzx ebx, word [esp + ebx*2 + 0x48]
sub edx, ebx
test edx, edx
jle 0x631d6520
lea ecx, [esi + 5]
add edx, edx
lea ebx, [ebp + ecx]
cmp ebx, dword [esp + 0xc]
jae 0x631d6520
movzx ebx, word [esp + ebx*2 + 0x48]
sub edx, ebx
test edx, edx
jle 0x631d6520
lea ecx, [esi + 6]
add edx, edx
lea ebx, [ebp + ecx]
cmp ebx, dword [esp + 0xc]
jae 0x631d6520
movzx ebx, word [esp + ebx*2 + 0x48]
sub edx, ebx
test edx, edx
jle 0x631d6520
lea ecx, [esi + 7]
add edx, edx
lea ebx, [ebp + ecx]
cmp ebx, dword [esp + 0xc]
jae 0x631d6520
movzx ebx, word [esp + ebx*2 + 0x48]
sub edx, ebx
test edx, edx
jle 0x631d6520
lea ecx, [esi + 8]
add edx, edx
lea ebx, [ebp + ecx]
cmp ebx, dword [esp + 0xc]
jae 0x631d6520
movzx ebx, word [esp + ebx*2 + 0x48]
sub edx, ebx
test edx, edx
jle 0x631d6520
lea ecx, [esi + 9]
add edx, edx
lea ebx, [ebp + ecx]
cmp ebx, dword [esp + 0xc]
jae 0x631d6520
movzx ebx, word [esp + ebx*2 + 0x48]
sub edx, ebx
test edx, edx
jle 0x631d6520
lea ecx, [esi + 0xa]
add edx, edx
lea ebx, [ebp + ecx]
cmp ebx, dword [esp + 0xc]
jae 0x631d6520
movzx ebx, word [esp + ebx*2 + 0x48]
sub edx, ebx
test edx, edx
jle 0x631d6520
lea ebx, [esi + 0xb]
add edx, edx
lea ecx, [ebp + ebx]
cmp ecx, dword [esp + 0xc]
jae 0x631d65c2
movzx ecx, word [esp + ecx*2 + 0x48]
sub edx, ecx
test edx, edx
jle 0x631d65c2
lea ebx, [esi + 0xc]
add edx, edx
lea ecx, [ebp + ebx]
cmp ecx, dword [esp + 0xc]
jae 0x631d65c2
movzx ecx, word [esp + ecx*2 + 0x48]
sub edx, ecx
test edx, edx
jle 0x631d65c2
lea ecx, [esi + 0xd]
lea ebx, [edx + edx]
lea edx, [ebp + ecx]
cmp edx, dword [esp + 0xc]
jae 0x631d6520
movzx edx, word [esp + edx*2 + 0x48]
sub ebx, edx
mov edx, ebx
test ebx, ebx
jle 0x631d6520
mov ebx, esi
add esi, 0xe
add edx, edx
lea ecx, [ebp + esi]
cmp ecx, dword [esp + 0xc]
jae 0x631d6734
movzx ecx, word [esp + ecx*2 + 0x48]
sub edx, ecx
test edx, edx
jle 0x631d6734
lea ecx, [ebx + 0xf]
mov esi, ebx
lea ebx, [edx + edx]
lea edx, [ebp + ecx]
cmp edx, dword [esp + 0xc]
jae 0x631d6520
movzx edx, word [esp + edx*2 + 0x48]
add esi, 0x10
sub ebx, edx
mov edx, ebx
test edx, edx
cmovg ecx, esi
mov dword [esp + 0x14], ecx
nop
lea esi, [esi]
movzx ecx, byte [esp + 0x14]
mov edx, 1
shl edx, cl
add dword [esp + 0x2c], edx
mov esi, dword [esp + 0x2c]
cmp esi, 0x354
jbe 0x631d64d7
cmp byte [esp + 0x47], 0
jne 0x631d5fef
cmp dword [esp + 0x2c], 0x250
jbe 0x631d64ec
cmp byte [esp + 0x46], 0
jne 0x631d5fef
mov esi, dword [esp + 0x40]
movzx ebx, byte [esp + 0x14]
mov dword [esp + 0x30], edi
mov ecx, dword [esp + 0x20]
lea edx, [esi + edi*4]
mov byte [edx], bl
sub ecx, esi
movzx ebx, byte [esp + 0x24]
sar ecx, 2
mov byte [edx + 1], bl
mov word [edx + 2], cx
jmp 0x631d622b
mov dword [esp + 0x14], ecx
jmp 0x631d64b0
test eax, eax
je 0x631d6542
mov edi, dword [esp + 0x20]
movzx ebx, byte [esp + 0x44]
xor edx, edx
lea eax, [edi + eax*4]
mov byte [eax], 0x40
mov byte [eax + 1], bl
mov word [eax + 2], dx
mov edi, dword [esp + 0x2c]
mov eax, dword [esp + 0x40]
lea eax, [eax + edi*4]
mov edi, dword [esp + 0xa8]
mov dword [edi], eax
mov eax, dword [esp + 0xac]
mov edi, dword [esp + 0x24]
mov dword [eax], edi
xor eax, eax
jmp 0x631d5c37
mov dword [esp + 0xc], 0xe
mov ebp, 1
jmp 0x631d5d60
cmp word [esp + 0x4a], 0
jne 0x631d681e
mov ebp, 0xd
jmp 0x631d5c53
cmp word [esp + 0x4a], 0
jne 0x631d6830
mov ebp, 0xb
jmp 0x631d5c53
cmp word [esp + 0x4a], 0
jne 0x631d67eb
mov ebp, 0xc
jmp 0x631d5c53
mov dword [esp + 0x14], ebx
jmp 0x631d64b0
cmp word [esp + 0x4a], 0
jne 0x631d6842
mov ebp, 0xa
jmp 0x631d5c53
cmp word [esp + 0x4a], 0
jne 0x631d6854
mov ebp, 8
jmp 0x631d5c53
cmp word [esp + 0x4a], 0
jne 0x631d6866
mov ebp, 9
jmp 0x631d5c53
cmp word [esp + 0x4a], 0
jne 0x631d6878
mov ebp, 6
jmp 0x631d5c53
cmp word [esp + 0x4a], 0
jne 0x631d67d9
mov ebp, 7
jmp 0x631d5c53
mov dword [esp + 0x28], 0
mov dword [esp + 0x38], 0x633ccc40
mov dword [esp + 0x3c], 0x633ccc80
jmp 0x631d609c
cmp word [esp + 0x4a], 0
jne 0x631d689c
mov ebp, 4
jmp 0x631d5c53
cmp word [esp + 0x4a], 0
jne 0x631d68ae
mov ebp, 5
jmp 0x631d5c53
cmp word [esp + 0x4a], 1
mov dword [esp + 0xc], 2
sbb ebp, ebp
not ebp
add ebp, 2
jmp 0x631d5d60
cmp word [esp + 0x4a], 0
jne 0x631d688a
cmp word [esp + 0x4c], 0
jne 0x631d680f
mov dword [esp + 0xc], 3
mov ebp, 3
jmp 0x631d5d60
mov dword [esp + 0xc], 1
mov ebp, 1
jmp 0x631d5d60
mov dword [esp + 0xc], 5
jmp 0x631d5d60
mov eax, 4
jmp 0x631d603e
mov dword [esp + 0xc], 4
jmp 0x631d5d60
mov eax, 5
jmp 0x631d603e
mov eax, 6
jmp 0x631d603e
mov dword [esp + 0xc], 6
jmp 0x631d5d60
mov eax, 7
jmp 0x631d603e
mov dword [esp + 0xc], 7
jmp 0x631d5d60
mov dword [esp + 0x14], esi
jmp 0x631d64b0
mov dword [esp + 0xc], 8
jmp 0x631d5d60
mov eax, 8
jmp 0x631d603e
mov eax, 9
jmp 0x631d603e
mov dword [esp + 0xc], 9
jmp 0x631d5d60
mov eax, 0xa
jmp 0x631d603e
mov dword [esp + 0xc], 0xa
jmp 0x631d5d60
mov eax, 0xb
jmp 0x631d603e
mov dword [esp + 0xc], 0xb
jmp 0x631d5d60
mov eax, 0xd
jmp 0x631d603e
mov dword [esp + 0xc], 0xd
jmp 0x631d5d60
mov eax, 0xc
jmp 0x631d603e
mov dword [esp + 0xc], 0xc
jmp 0x631d5d60
mov dword [esp + 0xc], 0xe
mov ebp, 0xe
jmp 0x631d5d60
mov dword [esp + 0xc], 7
mov ebp, 1
jmp 0x631d5d60
mov dword [esp + 0xc], 0xc
mov ebp, 1
jmp 0x631d5d60
mov dword [esp + 0xc], 0xf
mov ebp, 1
jmp 0x631d5d60
mov ebp, 3
mov eax, 2
jmp 0x631d603e
mov dword [esp + 0xc], 0xd
mov ebp, 1
jmp 0x631d5d60
mov dword [esp + 0xc], 0xb
mov ebp, 1
jmp 0x631d5d60
mov dword [esp + 0xc], 0xa
mov ebp, 1
jmp 0x631d5d60
mov dword [esp + 0xc], 8
mov ebp, 1
jmp 0x631d5d60
mov dword [esp + 0xc], 9
mov ebp, 1
jmp 0x631d5d60
mov dword [esp + 0xc], 6
mov ebp, 1
jmp 0x631d5d60
mov dword [esp + 0xc], 3
mov ebp, 1
jmp 0x631d5d60
mov dword [esp + 0xc], 4
mov ebp, 1
jmp 0x631d5d60
mov dword [esp + 0xc], 5
mov ebp, 1
jmp 0x631d5d60