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

Disassembly:
push ebp
xor eax, eax
push edi
push esi
push ebx
sub esp, 0x90
mov esi, dword [esp + 0xac]
mov ebp, dword [esp + 0xb8]
mov dword [esp + eax + 0x44], 0
add eax, 4
cmp eax, 0x20
jb 0x41feba
mov eax, dword [esp + 0xa8]
test esi, esi
lea ecx, [eax + esi*2]
je 0x41fee8
movzx edx, word [eax]
add eax, 2
add word [esp + edx*2 + 0x44], 1
cmp eax, ecx
jne 0x41fed8
movzx ebx, word [esp + 0x62]
mov eax, dword [esp + 0xb4]
test bx, bx
mov eax, dword [eax]
jne 0x41fff7
cmp word [esp + 0x60], 0
jne 0x4209b7
cmp word [esp + 0x5e], 0
jne 0x4209c4
cmp word [esp + 0x5c], 0
jne 0x4209d1
cmp word [esp + 0x5a], 0
jne 0x420a12
cmp word [esp + 0x58], 0
jne 0x420a05
cmp word [esp + 0x56], 0
jne 0x420a39
cmp word [esp + 0x54], 0
jne 0x420a2c
cmp word [esp + 0x52], 0
jne 0x420a1f
cmp word [esp + 0x50], 0
jne 0x420a60
cmp word [esp + 0x4e], 0
jne 0x420a53
cmp word [esp + 0x4c], 0
jne 0x420a46
cmp word [esp + 0x4a], 0
jne 0x420a87
cmp word [esp + 0x48], 0
jne 0x420a6d
cmp word [esp + 0x46], 0
jne 0x4208e5
mov eax, dword [esp + 0xb0]
xor ecx, ecx
mov ebx, dword [esp + 0xb0]
mov eax, dword [eax]
lea edx, [eax + 4]
mov dword [ebx], edx
xor edx, edx
mov word [eax + 2], dx
mov byte [eax], 0x40
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 + 0xb4]
mov dword [eax], 1
xor eax, eax
add esp, 0x90
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x10], 0xf
nop
mov edi, dword [esp + 0x10]
cmp edi, eax
cmovbe eax, edi
cmp word [esp + 0x46], 0
mov edi, eax
jne 0x4208f7
mov eax, dword [esp + 0x10]
cmp eax, 2
jbe 0x42091b
cmp word [esp + 0x48], 0
jne 0x42091b
cmp eax, 3
jbe 0x4209aa
cmp word [esp + 0x4a], 0
jne 0x4209aa
cmp eax, 4
jbe 0x42099d
cmp word [esp + 0x4c], 0
jne 0x42099d
cmp eax, 5
jbe 0x420990
cmp word [esp + 0x4e], 0
jne 0x420990
cmp eax, 6
jbe 0x420983
cmp word [esp + 0x50], 0
jne 0x420983
cmp eax, 7
jbe 0x420976
cmp word [esp + 0x52], 0
jne 0x420976
cmp eax, 8
jbe 0x420969
cmp word [esp + 0x54], 0
jne 0x420969
cmp eax, 9
jbe 0x42095c
cmp word [esp + 0x56], 0
jne 0x42095c
cmp eax, 0xa
jbe 0x42094f
cmp word [esp + 0x58], 0
jne 0x42094f
cmp eax, 0xb
jbe 0x420942
cmp word [esp + 0x5a], 0
jne 0x420942
cmp eax, 0xc
jbe 0x420935
cmp word [esp + 0x5c], 0
jne 0x420935
cmp eax, 0xd
jbe 0x420928
cmp word [esp + 0x5e], 0
jne 0x420928
cmp eax, 0xe
jbe 0x420a7a
cmp word [esp + 0x60], 1
sbb eax, eax
mov dword [esp + 0xc], eax
not dword [esp + 0xc]
add dword [esp + 0xc], 0xf
movzx eax, word [esp + 0x46]
mov edx, 2
sub edx, eax
movzx eax, word [esp + 0x48]
add edx, edx
sub edx, eax
js 0x42083e
movzx eax, word [esp + 0x4a]
add edx, edx
sub edx, eax
js 0x42083e
movzx eax, word [esp + 0x4c]
add edx, edx
sub edx, eax
js 0x42083e
movzx eax, word [esp + 0x4e]
add edx, edx
sub edx, eax
js 0x42083e
movzx eax, word [esp + 0x50]
add edx, edx
sub edx, eax
js 0x42083e
movzx eax, word [esp + 0x52]
add edx, edx
sub edx, eax
js 0x42083e
movzx eax, word [esp + 0x54]
add edx, edx
sub edx, eax
js 0x42083e
movzx eax, word [esp + 0x56]
add edx, edx
sub edx, eax
js 0x42083e
movzx eax, word [esp + 0x58]
add edx, edx
sub edx, eax
js 0x42083e
movzx eax, word [esp + 0x5a]
add edx, edx
sub edx, eax
js 0x42083e
movzx eax, word [esp + 0x5c]
add edx, edx
sub edx, eax
js 0x42083e
movzx eax, word [esp + 0x5e]
add edx, edx
sub edx, eax
js 0x42083e
movzx eax, word [esp + 0x60]
add edx, edx
sub edx, eax
js 0x42083e
add edx, edx
cmp edx, ebx
js 0x42083e
je 0x42022a
cmp dword [esp + 0x10], 1
jne 0x42083e
mov eax, dword [esp + 0xa4]
test eax, eax
je 0x42083e
movzx eax, word [esp + 0x46]
xor ebx, ebx
mov word [esp + 0x66], bx
mov word [esp + 0x68], ax
add ax, word [esp + 0x48]
mov word [esp + 0x6a], ax
add ax, word [esp + 0x4a]
mov word [esp + 0x6c], ax
add ax, word [esp + 0x4c]
mov word [esp + 0x6e], ax
add ax, word [esp + 0x4e]
mov word [esp + 0x70], ax
add ax, word [esp + 0x50]
mov word [esp + 0x72], ax
add ax, word [esp + 0x52]
mov word [esp + 0x74], ax
add ax, word [esp + 0x54]
mov word [esp + 0x76], ax
add ax, word [esp + 0x56]
mov word [esp + 0x78], ax
add ax, word [esp + 0x58]
mov word [esp + 0x7a], ax
add ax, word [esp + 0x5a]
mov word [esp + 0x7c], ax
add ax, word [esp + 0x5c]
mov word [esp + 0x7e], ax
add ax, word [esp + 0x5e]
mov word [esp + 0x80], ax
add ax, word [esp + 0x60]
mov word [esp + 0x82], ax
xor eax, eax
test esi, esi
je 0x4202f8
mov dword [esp], edi
mov edi, dword [esp + 0xa8]
movzx ecx, word [edi + eax*2]
test cx, cx
je 0x4202ee
movzx edx, word [esp + ecx*2 + 0x64]
lea ebx, [edx + 1]
mov word [esp + ecx*2 + 0x64], bx
mov word [ebp + edx*2], ax
add eax, 1
cmp eax, esi
jne 0x4202d3
mov edi, dword [esp]
mov ecx, dword [esp + 0xa4]
test ecx, ecx
je 0x420872
xor ebx, ebx
mov eax, 0x101
cmp dword [esp + 0xa4], 1
cmovne eax, ebx
mov ebx, 0x4bf520
mov dword [esp + 0x20], eax
mov eax, 0x4bf5a0
cmovne eax, ebx
mov ebx, 0x4bf560
mov dword [esp + 0x3c], eax
mov eax, 0x4bf5e0
cmovne eax, ebx
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0xc]
cmp eax, edi
cmovae edi, eax
mov eax, dword [esp + 0xb0]
mov ecx, edi
mov dword [esp + 0x24], edi
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov eax, 1
shl eax, cl
cmp dword [esp + 0xa4], 1
sete byte [esp + 0x42]
cmp eax, 0x354
ja 0x420857
cmp dword [esp + 0xa4], 2
sete byte [esp + 0x43]
cmp eax, 0x250
ja 0x420887
mov ebx, dword [esp + 0x24]
xor edi, edi
mov dword [esp + 0x2c], eax
sub eax, 1
mov dword [esp + 0x14], ebp
mov ebp, edi
mov dword [esp + 0x30], 0xffffffff
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp + 0x34], eax
lea esi, [esi]
movzx eax, byte [esp + 0xc]
sub al, byte [esp + 4]
mov byte [esp], 0
mov byte [esp + 0x41], al
mov eax, dword [esp + 0x14]
movzx esi, word [eax]
movzx eax, si
lea edx, [eax + 1]
cmp dword [esp + 0x20], edx
ja 0x420405
cmp dword [esp + 0x20], eax
ja 0x420833
mov ebx, dword [esp + 0x3c]
sub eax, dword [esp + 0x20]
movzx ebx, byte [ebx + eax*2]
mov byte [esp], bl
mov ebx, dword [esp + 0x38]
movzx esi, word [ebx + eax*2]
mov ecx, dword [esp + 0xc]
mov edx, 1
mov eax, 1
sub ecx, dword [esp + 4]
mov dword [esp + 0x1c], ebp
shl edx, cl
movzx ecx, byte [esp + 8]
lea edi, [edx*4]
neg edi
shl eax, cl
movzx ecx, byte [esp + 4]
mov ebx, eax
mov dword [esp + 0x28], eax
mov eax, ebp
movzx ebp, byte [esp]
mov dword [esp], edx
shr eax, cl
mov ecx, ebx
add eax, ebx
mov ebx, dword [esp + 0x18]
sub eax, edx
lea eax, [ebx + eax*4 + 1]
movzx ebx, byte [esp + 0x41]
mov edx, ebp
mov byte [eax - 1], dl
mov byte [eax], bl
mov word [eax + 1], si
add eax, edi
sub ecx, dword [esp]
jne 0x420456
mov eax, dword [esp + 0xc]
mov ebp, dword [esp + 0x1c]
lea ecx, [eax - 1]
mov eax, 1
shl eax, cl
test eax, ebp
mov ecx, eax
je 0x420486
shr ecx, 1
test ebp, ecx
jne 0x420480
test ecx, ecx
je 0x420821
lea eax, [ecx - 1]
and eax, ebp
lea ebp, [eax + ecx]
mov edi, dword [esp + 0xc]
movzx eax, word [esp + edi*2 + 0x44]
mov word [esp], ax
sub eax, 1
test ax, ax
mov word [esp + edi*2 + 0x44], ax
jne 0x4204d3
mov eax, dword [esp + 0x10]
cmp edi, eax
je 0x4208a5
mov eax, dword [esp + 0x14]
mov ebx, dword [esp + 0xa8]
movzx eax, word [eax + 2]
movzx eax, word [ebx + eax*2]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x24], eax
jae 0x420817
mov ebx, dword [esp + 0x34]
and ebx, ebp
cmp ebx, dword [esp + 0x30]
je 0x420817
mov eax, dword [esp + 4]
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x10]
test eax, eax
cmove eax, dword [esp + 0x24]
mov edi, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 4], edi
lea eax, [eax + esi*4]
mov esi, dword [esp + 0xc]
mov dword [esp + 0x18], eax
mov eax, esi
sub eax, edi
mov edi, eax
mov dword [esp + 8], eax
mov ecx, edi
mov eax, 1
shl eax, cl
cmp esi, edx
jae 0x42089d
movzx edx, word [esp + esi*2 + 0x44]
sub eax, edx
test eax, eax
jle 0x420894
mov esi, dword [esp + 4]
lea ecx, [edi + 1]
add eax, eax
lea edx, [ecx + esi]
cmp edx, dword [esp + 0x10]
jae 0x42084e
movzx edx, word [esp + edx*2 + 0x44]
sub eax, edx
test eax, eax
jle 0x42084e
mov esi, dword [esp + 8]
add eax, eax
lea edx, [esi + 2]
mov esi, dword [esp + 4]
lea ecx, [edx + esi]
cmp ecx, dword [esp + 0x10]
jae 0x420828
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x420828
mov esi, dword [esp + 8]
add eax, eax
mov edi, dword [esp + 4]
lea ecx, [esi + 3]
lea edx, [ecx + edi]
cmp edx, dword [esp + 0x10]
jae 0x42084e
movzx edx, word [esp + edx*2 + 0x44]
sub eax, edx
test eax, eax
jle 0x42084e
mov esi, dword [esp + 8]
add eax, eax
mov edi, dword [esp + 4]
lea edx, [esi + 4]
lea ecx, [edx + edi]
cmp ecx, dword [esp + 0x10]
jae 0x420828
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x420828
mov esi, dword [esp + 8]
add eax, eax
mov edi, dword [esp + 4]
lea edx, [esi + 5]
lea ecx, [edx + edi]
cmp ecx, dword [esp + 0x10]
jae 0x420828
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x420828
mov esi, dword [esp + 8]
add eax, eax
mov edi, dword [esp + 4]
lea edx, [esi + 6]
lea ecx, [edx + edi]
cmp ecx, dword [esp + 0x10]
jae 0x420828
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x420828
mov esi, dword [esp + 8]
add eax, eax
mov edi, dword [esp + 4]
lea edx, [esi + 7]
lea ecx, [edx + edi]
cmp ecx, dword [esp + 0x10]
jae 0x420828
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x420828
mov esi, dword [esp + 8]
add eax, eax
mov edi, dword [esp + 4]
lea edx, [esi + 8]
lea ecx, [edx + edi]
cmp ecx, dword [esp + 0x10]
jae 0x420828
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x420828
mov esi, dword [esp + 8]
add eax, eax
mov edi, dword [esp + 4]
lea edx, [esi + 9]
lea ecx, [edx + edi]
cmp ecx, dword [esp + 0x10]
jae 0x420828
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x420828
mov esi, dword [esp + 8]
add eax, eax
mov edi, dword [esp + 4]
lea edx, [esi + 0xa]
lea ecx, [edx + edi]
cmp ecx, dword [esp + 0x10]
jae 0x420828
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x420828
mov esi, dword [esp + 8]
add eax, eax
mov edi, dword [esp + 4]
lea edx, [esi + 0xb]
lea ecx, [edx + edi]
cmp ecx, dword [esp + 0x10]
jae 0x420828
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x420828
mov esi, dword [esp + 8]
add eax, eax
mov edi, dword [esp + 4]
lea edx, [esi + 0xc]
lea ecx, [edx + edi]
cmp ecx, dword [esp + 0x10]
jae 0x420828
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x420828
mov esi, dword [esp + 8]
add eax, eax
mov edi, dword [esp + 4]
lea edx, [esi + 0xd]
lea ecx, [edx + edi]
cmp ecx, dword [esp + 0x10]
jae 0x420828
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x420828
mov esi, dword [esp + 8]
add eax, eax
mov edi, dword [esp + 4]
lea edx, [esi + 0xe]
lea ecx, [edx + edi]
cmp ecx, dword [esp + 0x10]
jae 0x420828
movzx ecx, word [esp + ecx*2 + 0x44]
sub eax, ecx
test eax, eax
jle 0x420828
mov esi, dword [esp + 8]
add eax, eax
mov edi, dword [esp + 4]
lea edx, [esi + 0xf]
lea ecx, [edx + edi]
cmp ecx, dword [esp + 0x10]
jae 0x420828
movzx ecx, word [esp + ecx*2 + 0x44]
add dword [esp + 8], 0x10
sub eax, ecx
mov ecx, dword [esp + 8]
test eax, eax
jle 0x420828
mov eax, 1
shl eax, cl
add dword [esp + 0x2c], eax
cmp dword [esp + 0x2c], 0x354
ja 0x4209de
cmp dword [esp + 0x2c], 0x250
ja 0x4209f0
mov eax, dword [esp + 0xb0]
lea edx, [ebx*4]
movzx ecx, byte [esp + 8]
mov dword [esp + 0x30], ebx
mov eax, dword [eax]
mov byte [eax + ebx*4], cl
mov eax, dword [esp + 0xb0]
movzx ecx, byte [esp + 0x24]
mov eax, dword [eax]
mov byte [eax + edx + 1], cl
mov eax, dword [esp + 0xb0]
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 0x4203c0
xor ebp, ebp
jmp 0x420496
mov dword [esp + 8], edx
mov ecx, edx
jmp 0x4207ab
xor esi, esi
mov byte [esp], 0x60
jmp 0x420405
add esp, 0x90
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ecx
jmp 0x4207ab
cmp byte [esp + 0x42], 0
je 0x42037a
add esp, 0x90
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x20], 0x14
jmp 0x42033f
cmp byte [esp + 0x43], 0
je 0x420392
jmp 0x420862
mov ecx, dword [esp + 8]
jmp 0x4207ab
mov ecx, edi
nop
jmp 0x4207ab
test ebp, ebp
je 0x4208c1
mov eax, dword [esp + 0x18]
xor edx, edx
movzx ebx, byte [esp + 0x41]
lea eax, [eax + ebp*4]
mov byte [eax], 0x40
mov byte [eax + 1], bl
mov word [eax + 2], dx
mov ebx, dword [esp + 0xb0]
mov eax, dword [esp + 0x2c]
shl eax, 2
add dword [ebx], eax
mov eax, dword [esp + 0xb4]
mov ebx, dword [esp + 0x24]
mov dword [eax], ebx
xor eax, eax
jmp 0x41ffec
mov edi, 1
test eax, eax
cmove edi, eax
mov dword [esp + 0x10], 1
movzx ecx, word [esp + 0x46]
mov edx, 2
mov eax, 0xffffffff
sub edx, ecx
js 0x41ffec
mov dword [esp + 0xc], 1
jmp 0x420141
mov dword [esp + 0xc], 2
jmp 0x420135
mov dword [esp + 0xc], 0xd
jmp 0x420135
mov dword [esp + 0xc], 0xc
jmp 0x420135
mov dword [esp + 0xc], 0xb
jmp 0x420135
mov dword [esp + 0xc], 0xa
jmp 0x420135
mov dword [esp + 0xc], 9
jmp 0x420135
mov dword [esp + 0xc], 8
jmp 0x420135
mov dword [esp + 0xc], 7
jmp 0x420135
mov dword [esp + 0xc], 6
jmp 0x420135
mov dword [esp + 0xc], 5
jmp 0x420135
mov dword [esp + 0xc], 4
jmp 0x420135
mov dword [esp + 0xc], 3
jmp 0x420135
mov dword [esp + 0x10], 0xe
jmp 0x420000
mov dword [esp + 0x10], 0xd
jmp 0x420000
mov dword [esp + 0x10], 0xc
jmp 0x420000
cmp byte [esp + 0x42], 0
je 0x4207c4
jmp 0x420862
cmp byte [esp + 0x43], 0
je 0x4207d2
nop
lea esi, [esi]
jmp 0x420862
mov dword [esp + 0x10], 0xa
jmp 0x420000
mov dword [esp + 0x10], 0xb
jmp 0x420000
mov dword [esp + 0x10], 7
jmp 0x420000
mov dword [esp + 0x10], 8
jmp 0x420000
mov dword [esp + 0x10], 9
jmp 0x420000
mov dword [esp + 0x10], 4
jmp 0x420000
mov dword [esp + 0x10], 5
jmp 0x420000
mov dword [esp + 0x10], 6
jmp 0x420000
mov dword [esp + 0x10], 2
jmp 0x420000
mov dword [esp + 0xc], 0xe
jmp 0x420135
mov dword [esp + 0x10], 3
jmp 0x420000