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

Disassembly:
push ebp
xor eax, eax
push edi
push esi
push ebx
sub esp, 0x8c
mov esi, dword [esp + 0xa8]
mov ebp, dword [esp + 0xb4]
mov dword [esp + eax + 0x40], 0
add eax, 4
cmp eax, 0x20
jb 0x41ce2a
mov eax, dword [esp + 0xa4]
test esi, esi
lea ecx, [eax + esi*2]
je 0x41ce58
movzx edx, word [eax]
add eax, 2
add word [esp + edx*2 + 0x40], 1
cmp eax, ecx
jne 0x41ce48
movzx ebx, word [esp + 0x5e]
mov eax, dword [esp + 0xb0]
test bx, bx
mov eax, dword [eax]
jne 0x41cf67
cmp word [esp + 0x5c], 0
jne 0x41d916
cmp word [esp + 0x5a], 0
jne 0x41d923
cmp word [esp + 0x58], 0
jne 0x41d930
cmp word [esp + 0x56], 0
jne 0x41d972
cmp word [esp + 0x54], 0
jne 0x41d965
cmp word [esp + 0x52], 0
jne 0x41d999
cmp word [esp + 0x50], 0
jne 0x41d98c
cmp word [esp + 0x4e], 0
jne 0x41d97f
cmp word [esp + 0x4c], 0
jne 0x41d9c0
cmp word [esp + 0x4a], 0
jne 0x41d9b3
cmp word [esp + 0x48], 0
jne 0x41d9a6
cmp word [esp + 0x46], 0
jne 0x41d9e7
cmp word [esp + 0x44], 0
jne 0x41d9cd
cmp word [esp + 0x42], 0
jne 0x41d844
mov eax, dword [esp + 0xac]
xor ecx, ecx
mov ebx, dword [esp + 0xac]
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 + 0xb0]
mov dword [eax], 1
xor eax, eax
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0xc], 0xf
nop
mov edi, dword [esp + 0xc]
cmp edi, eax
cmovbe eax, edi
cmp word [esp + 0x42], 0
mov edi, eax
jne 0x41d856
mov eax, dword [esp + 0xc]
cmp eax, 2
jbe 0x41d87a
cmp word [esp + 0x44], 0
jne 0x41d87a
cmp eax, 3
jbe 0x41d909
cmp word [esp + 0x46], 0
jne 0x41d909
cmp eax, 4
jbe 0x41d8fc
cmp word [esp + 0x48], 0
jne 0x41d8fc
cmp eax, 5
jbe 0x41d8ef
cmp word [esp + 0x4a], 0
jne 0x41d8ef
cmp eax, 6
jbe 0x41d8e2
cmp word [esp + 0x4c], 0
jne 0x41d8e2
cmp eax, 7
jbe 0x41d8d5
cmp word [esp + 0x4e], 0
jne 0x41d8d5
cmp eax, 8
jbe 0x41d8c8
cmp word [esp + 0x50], 0
jne 0x41d8c8
cmp eax, 9
jbe 0x41d8bb
cmp word [esp + 0x52], 0
jne 0x41d8bb
cmp eax, 0xa
jbe 0x41d8ae
cmp word [esp + 0x54], 0
jne 0x41d8ae
cmp eax, 0xb
jbe 0x41d8a1
cmp word [esp + 0x56], 0
jne 0x41d8a1
cmp eax, 0xc
jbe 0x41d894
cmp word [esp + 0x58], 0
jne 0x41d894
cmp eax, 0xd
jbe 0x41d887
cmp word [esp + 0x5a], 0
jne 0x41d887
cmp eax, 0xe
jbe 0x41d9da
cmp word [esp + 0x5c], 1
sbb eax, eax
mov dword [esp + 8], eax
not dword [esp + 8]
add dword [esp + 8], 0xf
movzx eax, word [esp + 0x42]
mov edx, 2
sub edx, eax
movzx eax, word [esp + 0x44]
add edx, edx
sub edx, eax
js 0x41d79c
movzx eax, word [esp + 0x46]
add edx, edx
sub edx, eax
js 0x41d79c
movzx eax, word [esp + 0x48]
add edx, edx
sub edx, eax
js 0x41d79c
movzx eax, word [esp + 0x4a]
add edx, edx
sub edx, eax
js 0x41d79c
movzx eax, word [esp + 0x4c]
add edx, edx
sub edx, eax
js 0x41d79c
movzx eax, word [esp + 0x4e]
add edx, edx
sub edx, eax
js 0x41d79c
movzx eax, word [esp + 0x50]
add edx, edx
sub edx, eax
js 0x41d79c
movzx eax, word [esp + 0x52]
add edx, edx
sub edx, eax
js 0x41d79c
movzx eax, word [esp + 0x54]
add edx, edx
sub edx, eax
js 0x41d79c
movzx eax, word [esp + 0x56]
add edx, edx
sub edx, eax
js 0x41d79c
movzx eax, word [esp + 0x58]
add edx, edx
sub edx, eax
js 0x41d79c
movzx eax, word [esp + 0x5a]
add edx, edx
sub edx, eax
js 0x41d79c
movzx eax, word [esp + 0x5c]
add edx, edx
sub edx, eax
js 0x41d79c
add edx, edx
cmp edx, ebx
js 0x41d79c
je 0x41d19a
cmp dword [esp + 0xc], 1
jne 0x41d79c
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x41d79c
movzx eax, word [esp + 0x42]
xor ebx, ebx
mov word [esp + 0x62], bx
mov word [esp + 0x64], ax
add ax, word [esp + 0x44]
mov word [esp + 0x66], ax
add ax, word [esp + 0x46]
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
xor eax, eax
test esi, esi
je 0x41d265
mov dword [esp], edi
mov edi, dword [esp + 0xa4]
lea esi, [esi]
movzx ecx, word [edi + eax*2]
test cx, cx
je 0x41d25b
movzx edx, word [esp + ecx*2 + 0x60]
lea ebx, [edx + 1]
mov word [esp + ecx*2 + 0x60], bx
mov word [ebp + edx*2], ax
add eax, 1
cmp eax, esi
jne 0x41d240
mov edi, dword [esp]
mov ecx, dword [esp + 0xa0]
test ecx, ecx
je 0x41d7d0
cmp dword [esp + 0xa0], 1
mov ebx, 0xffffffff
mov eax, 0x100
cmovne eax, ebx
mov ebx, 0x4b48a0
mov dword [esp + 0x28], eax
mov eax, 0x4b471e
cmovne eax, ebx
mov ebx, 0x4b48e0
mov dword [esp + 0x38], eax
mov eax, 0x4b475e
cmovne eax, ebx
mov dword [esp + 0x34], eax
mov eax, dword [esp + 8]
cmp eax, edi
cmovae edi, eax
mov eax, dword [esp + 0xac]
mov ecx, edi
mov dword [esp + 0x1c], edi
mov eax, dword [eax]
mov dword [esp + 0x18], eax
mov eax, 1
shl eax, cl
cmp dword [esp + 0xa0], 1
sete byte [esp + 0x3e]
cmp eax, 0x354
ja 0x41d7b5
cmp dword [esp + 0xa0], 2
sete byte [esp + 0x3f]
cmp eax, 0x250
ja 0x41d7e5
mov ebx, dword [esp + 0x1c]
xor edi, edi
mov dword [esp + 0x24], eax
sub eax, 1
mov dword [esp + 0x30], eax
mov eax, ebp
mov dword [esp + 0x14], ebp
mov dword [esp + 4], ebx
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp], 0
mov dword [esp + 0x10], edi
movzx edi, word [eax]
movzx ebx, byte [esp + 8]
sub bl, byte [esp]
mov byte [esp + 0x3c], 0
movzx eax, di
cmp dword [esp + 0x28], eax
jg 0x41d363
jge 0x41d790
mov edi, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
movzx edx, byte [edi + eax*2]
movzx edi, word [esi + eax*2]
mov byte [esp + 0x3c], dl
mov ecx, dword [esp + 8]
mov ebp, 1
mov eax, 1
sub ecx, dword [esp]
shl ebp, cl
movzx ecx, byte [esp + 4]
lea esi, [ebp*4]
neg esi
shl eax, cl
movzx ecx, byte [esp]
mov edx, eax
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x10]
shr eax, cl
mov ecx, edx
add eax, edx
mov edx, dword [esp + 0x18]
sub eax, ebp
lea eax, [edx + eax*4 + 1]
movzx edx, byte [esp + 0x3c]
lea esi, [esi]
mov byte [eax - 1], dl
mov byte [eax], bl
mov word [eax + 1], di
add eax, esi
sub ecx, ebp
jne 0x41d3b0
mov eax, dword [esp + 8]
lea ecx, [eax - 1]
mov eax, 1
shl eax, cl
mov ecx, eax
mov eax, dword [esp + 0x10]
test eax, ecx
je 0x41d3dd
shr ecx, 1
test eax, ecx
jne 0x41d3d7
test ecx, ecx
je 0x41d774
lea eax, [ecx - 1]
and eax, dword [esp + 0x10]
add eax, ecx
mov dword [esp + 0x10], eax
mov edi, dword [esp + 8]
movzx eax, word [esp + edi*2 + 0x40]
mov word [esp + 0x3c], ax
sub eax, 1
test ax, ax
mov word [esp + edi*2 + 0x40], ax
jne 0x41d430
mov eax, dword [esp + 0xc]
cmp edi, eax
je 0x41d805
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0xa4]
movzx eax, word [eax + 2]
movzx eax, word [esi + eax*2]
mov dword [esp + 8], eax
mov eax, dword [esp + 8]
cmp dword [esp + 0x1c], eax
jae 0x41d766
mov ebx, dword [esp + 0x10]
and ebx, dword [esp + 0x30]
cmp ebx, dword [esp + 0x2c]
je 0x41d766
mov eax, dword [esp]
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0xc]
test eax, eax
cmove eax, dword [esp + 0x1c]
mov ebp, eax
mov dword [esp], eax
mov eax, dword [esp + 0x18]
lea eax, [eax + esi*4]
mov esi, dword [esp + 8]
mov dword [esp + 0x18], eax
mov eax, esi
sub eax, ebp
mov edi, eax
mov dword [esp + 4], eax
mov ecx, edi
mov eax, 1
shl eax, cl
cmp esi, edx
jae 0x41d7fb
movzx edx, word [esp + esi*2 + 0x40]
sub eax, edx
test eax, eax
jle 0x41d7f2
lea ecx, [edi + 1]
add eax, eax
lea edx, [ecx + ebp]
cmp edx, dword [esp + 0xc]
jae 0x41d7ac
movzx edx, word [esp + edx*2 + 0x40]
sub eax, edx
test eax, eax
jle 0x41d7ac
mov esi, dword [esp + 4]
add eax, eax
lea edx, [esi + 2]
mov esi, dword [esp]
lea ecx, [edx + esi]
cmp ecx, dword [esp + 0xc]
jae 0x41d781
movzx ecx, word [esp + ecx*2 + 0x40]
sub eax, ecx
test eax, eax
jle 0x41d781
mov edi, dword [esp + 4]
add eax, eax
mov esi, dword [esp]
lea ecx, [edi + 3]
lea edx, [ecx + esi]
cmp edx, dword [esp + 0xc]
jae 0x41d7ac
movzx edx, word [esp + edx*2 + 0x40]
sub eax, edx
test eax, eax
jle 0x41d7ac
mov edi, dword [esp + 4]
add eax, eax
mov esi, dword [esp]
lea edx, [edi + 4]
lea ecx, [edx + esi]
cmp ecx, dword [esp + 0xc]
jae 0x41d781
movzx ecx, word [esp + ecx*2 + 0x40]
sub eax, ecx
test eax, eax
jle 0x41d781
mov edi, dword [esp + 4]
add eax, eax
mov esi, dword [esp]
lea edx, [edi + 5]
lea ecx, [edx + esi]
cmp ecx, dword [esp + 0xc]
jae 0x41d781
movzx ecx, word [esp + ecx*2 + 0x40]
sub eax, ecx
test eax, eax
jle 0x41d781
mov edi, dword [esp + 4]
add eax, eax
mov esi, dword [esp]
lea edx, [edi + 6]
lea ecx, [edx + esi]
cmp ecx, dword [esp + 0xc]
jae 0x41d781
movzx ecx, word [esp + ecx*2 + 0x40]
sub eax, ecx
test eax, eax
jle 0x41d781
mov edi, dword [esp + 4]
add eax, eax
mov esi, dword [esp]
lea edx, [edi + 7]
lea ecx, [edx + esi]
cmp ecx, dword [esp + 0xc]
jae 0x41d781
movzx ecx, word [esp + ecx*2 + 0x40]
sub eax, ecx
test eax, eax
jle 0x41d781
mov edi, dword [esp + 4]
add eax, eax
mov esi, dword [esp]
lea edx, [edi + 8]
lea ecx, [edx + esi]
cmp ecx, dword [esp + 0xc]
jae 0x41d781
movzx ecx, word [esp + ecx*2 + 0x40]
sub eax, ecx
test eax, eax
jle 0x41d781
mov edi, dword [esp + 4]
add eax, eax
mov esi, dword [esp]
lea edx, [edi + 9]
lea ecx, [edx + esi]
cmp ecx, dword [esp + 0xc]
jae 0x41d781
movzx ecx, word [esp + ecx*2 + 0x40]
sub eax, ecx
test eax, eax
jle 0x41d781
mov edi, dword [esp + 4]
add eax, eax
mov esi, dword [esp]
lea edx, [edi + 0xa]
lea ecx, [edx + esi]
cmp ecx, dword [esp + 0xc]
jae 0x41d781
movzx ecx, word [esp + ecx*2 + 0x40]
sub eax, ecx
test eax, eax
jle 0x41d781
mov edi, dword [esp + 4]
add eax, eax
mov esi, dword [esp]
lea edx, [edi + 0xb]
lea ecx, [edx + esi]
cmp ecx, dword [esp + 0xc]
jae 0x41d781
movzx ecx, word [esp + ecx*2 + 0x40]
sub eax, ecx
test eax, eax
jle 0x41d781
mov edi, dword [esp + 4]
add eax, eax
mov esi, dword [esp]
lea edx, [edi + 0xc]
lea ecx, [edx + esi]
cmp ecx, dword [esp + 0xc]
jae 0x41d781
movzx ecx, word [esp + ecx*2 + 0x40]
sub eax, ecx
test eax, eax
jle 0x41d781
mov edi, dword [esp + 4]
add eax, eax
mov esi, dword [esp]
lea edx, [edi + 0xd]
lea ecx, [edx + esi]
cmp ecx, dword [esp + 0xc]
jae 0x41d781
movzx ecx, word [esp + ecx*2 + 0x40]
sub eax, ecx
test eax, eax
jle 0x41d781
mov edi, dword [esp + 4]
add eax, eax
mov esi, dword [esp]
lea edx, [edi + 0xe]
lea ecx, [edx + esi]
cmp ecx, dword [esp + 0xc]
jae 0x41d781
movzx ecx, word [esp + ecx*2 + 0x40]
sub eax, ecx
test eax, eax
jle 0x41d781
mov edi, dword [esp + 4]
add eax, eax
mov esi, dword [esp]
lea edx, [edi + 0xf]
lea ecx, [edx + esi]
cmp ecx, dword [esp + 0xc]
jae 0x41d781
movzx ecx, word [esp + ecx*2 + 0x40]
add dword [esp + 4], 0x10
sub eax, ecx
mov ecx, dword [esp + 4]
test eax, eax
jle 0x41d781
mov eax, 1
shl eax, cl
add dword [esp + 0x24], eax
cmp dword [esp + 0x24], 0x354
ja 0x41d93d
cmp dword [esp + 0x24], 0x250
ja 0x41d950
mov eax, dword [esp + 0xac]
lea edx, [ebx*4]
movzx ecx, byte [esp + 4]
mov dword [esp + 0x2c], ebx
mov eax, dword [eax]
mov byte [eax + ebx*4], cl
mov eax, dword [esp + 0xac]
movzx ecx, byte [esp + 0x1c]
mov eax, dword [eax]
mov byte [eax + edx + 1], cl
mov eax, dword [esp + 0xac]
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
mov eax, dword [esp + 0x14]
jmp 0x41d330
mov dword [esp + 0x10], 0
jmp 0x41d3f2
mov dword [esp + 4], edx
mov ecx, edx
jmp 0x41d6fa
xor edi, edi
mov byte [esp + 0x3c], 0x60
jmp 0x41d363
add esp, 0x8c
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], ecx
jmp 0x41d6fa
cmp byte [esp + 0x3e], 0
je 0x41d2ea
add esp, 0x8c
mov eax, 1
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x38], ebp
mov dword [esp + 0x34], ebp
mov dword [esp + 0x28], 0x13
jmp 0x41d2af
cmp byte [esp + 0x3f], 0
je 0x41d302
jmp 0x41d7c0
mov ecx, dword [esp + 4]
jmp 0x41d6fa
mov ecx, edi
lea esi, [esi]
jmp 0x41d6fa
mov edi, dword [esp + 0x10]
test edi, edi
je 0x41d820
mov eax, dword [esp + 0x18]
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 + 0xac]
mov eax, dword [esp + 0x24]
shl eax, 2
add dword [ebx], eax
mov eax, dword [esp + 0xb0]
mov ebx, dword [esp + 0x1c]
mov dword [eax], ebx
xor eax, eax
jmp 0x41cf5c
mov edi, 1
test eax, eax
cmove edi, eax
mov dword [esp + 0xc], 1
movzx ecx, word [esp + 0x42]
mov edx, 2
mov eax, 0xffffffff
sub edx, ecx
js 0x41cf5c
mov dword [esp + 8], 1
jmp 0x41d0b1
mov dword [esp + 8], 2
jmp 0x41d0a5
mov dword [esp + 8], 0xd
jmp 0x41d0a5
mov dword [esp + 8], 0xc
jmp 0x41d0a5
mov dword [esp + 8], 0xb
jmp 0x41d0a5
mov dword [esp + 8], 0xa
jmp 0x41d0a5
mov dword [esp + 8], 9
jmp 0x41d0a5
mov dword [esp + 8], 8
jmp 0x41d0a5
mov dword [esp + 8], 7
jmp 0x41d0a5
mov dword [esp + 8], 6
jmp 0x41d0a5
mov dword [esp + 8], 5
jmp 0x41d0a5
mov dword [esp + 8], 4
jmp 0x41d0a5
mov dword [esp + 8], 3
jmp 0x41d0a5
mov dword [esp + 0xc], 0xe
jmp 0x41cf70
mov dword [esp + 0xc], 0xd
jmp 0x41cf70
mov dword [esp + 0xc], 0xc
jmp 0x41cf70
cmp byte [esp + 0x3e], 0
je 0x41d713
jmp 0x41d7c0
cmp byte [esp + 0x3f], 0
je 0x41d721
nop
lea esi, [esi]
jmp 0x41d7c0
mov dword [esp + 0xc], 0xa
jmp 0x41cf70
mov dword [esp + 0xc], 0xb
jmp 0x41cf70
mov dword [esp + 0xc], 7
jmp 0x41cf70
mov dword [esp + 0xc], 8
jmp 0x41cf70
mov dword [esp + 0xc], 9
jmp 0x41cf70
mov dword [esp + 0xc], 4
jmp 0x41cf70
mov dword [esp + 0xc], 5
jmp 0x41cf70
mov dword [esp + 0xc], 6
jmp 0x41cf70
mov dword [esp + 0xc], 2
jmp 0x41cf70
mov dword [esp + 8], 0xe
jmp 0x41d0a5
mov dword [esp + 0xc], 3
jmp 0x41cf70