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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x88
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
cmp esi, edx
jae 0x410123
lea edi, [esp + 0x40]
push esi
push eax
push edx
push ecx
push edi
call fcn.004a1b70
add esp, 0x14
cmp dword [edi], 0
je 0x410134
mov eax, dword [esp + 0x70]
mov edi, dword [esp + 0x64]
mov esi, dword [esp + 0x74]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x78]
cmp edi, 0xffffffff
mov dword [esp + 8], esi
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x7c]
mov dword [esp], eax
je 0x410146
mov ebx, dword [esp + 0x5c]
lea ecx, [ebx + eax - 1]
mov eax, 0
cmp ecx, esi
jae 0x4103bd
mov eax, dword [esp + 0x50]
mov esi, dword [esp + 0x58]
mov dword [esp + 0x14], eax
mov eax, dword [esp]
mov dword [esp + 0x2c], esi
mov edx, eax
sub edx, esi
xor esi, esi
inc esi
mov dword [esp + 0x28], edx
mov edx, esi
sub edx, dword [esp + 0x14]
mov dword [esp + 0x24], edx
lea edx, [eax - 1]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x10], edx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x18], edx
lea edx, [eax + eax - 1]
mov dword [esp + 0x38], edx
mov edx, dword [esp + 4]
lea eax, [edx + eax*2 - 1]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 4]
mov cl, byte [eax + ecx]
xor eax, eax
shld eax, esi, cl
shl esi, cl
test cl, 0x20
mov ecx, 0
cmovne eax, esi
cmovne esi, ecx
and eax, dword [esp + 0x18]
and esi, edx
or esi, eax
jne 0x41006e
mov eax, dword [esp + 0x38]
xor edi, edi
add eax, ebx
cmp eax, dword [esp + 8]
jae 0x41013f
mov eax, dword [esp + 0x34]
mov cl, byte [eax + ebx]
add ebx, dword [esp]
xor eax, eax
xor esi, esi
inc esi
shld eax, esi, cl
shl esi, cl
test cl, 0x20
cmovne eax, esi
cmovne esi, edi
and eax, dword [esp + 0x18]
and esi, dword [esp + 0x10]
jmp 0x410031
mov eax, dword [esp + 0x14]
mov ecx, edi
mov dword [esp + 0x20], edi
cmp eax, edi
cmova ecx, eax
cmp ecx, dword [esp]
mov dword [esp + 0xc], ecx
jae 0x4100b5
mov esi, dword [esp]
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
sub esi, ecx
add eax, ecx
add ecx, ebx
cmp ecx, dword [esp + 8]
jae 0x4103d8
mov dl, byte [eax]
mov edi, dword [esp + 4]
cmp dl, byte [edi + ecx]
jne 0x4100f8
mov edi, dword [esp + 0x20]
inc eax
inc ecx
dec esi
jne 0x410097
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 8]
cmp edi, eax
jae 0x4103bb
dec eax
cmp eax, dword [esp]
jae 0x4103c5
lea ecx, [eax + ebx]
cmp ecx, esi
jae 0x4103d0
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 4]
mov dl, byte [edx + eax]
cmp dl, byte [edi + ecx]
mov edi, dword [esp + 0x20]
je 0x4100bd
add ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x28]
jmp 0x410104
add ecx, dword [esp + 0x24]
mov esi, dword [esp + 8]
xor edi, edi
mov ebx, ecx
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
lea ecx, [ebx + eax]
xor eax, eax
cmp ecx, esi
mov esi, 1
jb 0x41000f
jmp 0x4103bd
push edx
push ecx
push esi
push eax
call fcn.00448cbc
add esp, 0x10
jmp 0x4103bd
cmp byte [esp + 0x4e], 0
je 0x4102d7
xor eax, eax
jmp 0x4103bd
mov ebx, dword [esp + 0x5c]
lea ecx, [ebx + eax - 1]
mov eax, 0
cmp ecx, esi
jae 0x4103bd
mov edi, dword [esp + 0x50]
mov edx, dword [esp]
sub edx, edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x24], edx
xor edx, edx
inc edx
sub edx, edi
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x1c]
lea eax, [edx + edi - 1]
add edx, edi
mov dword [esp + 0x1c], edx
mov edx, dword [esp]
mov dword [esp + 0x2c], eax
lea eax, [edx - 1]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x3c], eax
lea eax, [edi - 1]
xor edi, edi
mov dword [esp + 0x20], eax
lea eax, [edx + edx - 1]
mov edx, dword [esp + 4]
inc edi
mov dword [esp + 0x34], eax
mov eax, dword [esp]
lea eax, [edx + eax*2 - 1]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 4]
mov edx, edi
mov cl, byte [eax + ecx]
xor eax, eax
shld eax, edi, cl
shl edx, cl
test cl, 0x20
mov ecx, 0
mov edi, dword [esp]
cmovne eax, edx
cmovne edx, ecx
and eax, dword [esp + 0x18]
and edx, dword [esp + 0x10]
or edx, eax
jne 0x410232
mov eax, dword [esp + 0x34]
add eax, ebx
cmp eax, esi
jae 0x41013f
mov eax, dword [esp + 0x14]
mov cl, byte [eax + ebx]
add ebx, edi
xor eax, eax
xor edx, edx
inc edx
shld eax, edx, cl
shl edx, cl
test cl, 0x20
mov ecx, 0
cmovne eax, edx
cmovne edx, ecx
and eax, dword [esp + 0x18]
and edx, dword [esp + 0x10]
or edx, eax
je 0x4101f7
cmp dword [esp + 0xc], edi
jae 0x41026d
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
mov eax, ebx
mov dword [esp + 0x38], ebx
not eax
add ecx, ebx
cmp ecx, dword [esp + 8]
jae 0x410407
mov dl, byte [esi]
mov ebx, dword [esp + 4]
cmp dl, byte [ebx + ecx]
jne 0x4102b6
mov ebx, dword [esp + 0x38]
inc esi
dec eax
inc ecx
dec edi
jne 0x41024e
mov eax, dword [esp + 0x20]
mov esi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
add eax, ebx
cmp ecx, 1
je 0x4103bb
mov edx, dword [esp]
cmp dword [esp + 0x20], edx
jae 0x4103ee
cmp eax, dword [esp + 8]
jae 0x4103fb
mov dl, byte [esi]
mov edi, dword [esp + 4]
inc ecx
dec esi
cmp dl, byte [edi + eax]
mov edi, 1
lea eax, [eax - 1]
je 0x41027b
add ebx, dword [esp + 0x3c]
jmp 0x4102bd
neg eax
xor edi, edi
mov ebx, eax
inc edi
mov eax, dword [esp + 0x28]
mov esi, dword [esp + 8]
lea ecx, [ebx + eax]
xor eax, eax
cmp ecx, esi
jb 0x4101ca
jmp 0x4103bd
cmp byte [esp + 0x4c], 0
mov esi, dword [esp + 0x70]
mov eax, dword [esp + 0x74]
mov edx, dword [esp + 0x44]
sete bl
mov dword [esp + 4], eax
mov dword [esp], esi
mov ecx, dword [esp + 4]
test edx, edx
je 0x410313
mov ecx, dword [esp + 4]
sub ecx, edx
jbe 0x41030d
cmp byte [esi + edx], 0xbf
jg 0x410313
jmp 0x410427
jne 0x410427
test ecx, ecx
je 0x4103b2
mov cl, byte [esi + edx]
movzx edi, cl
test cl, cl
jns 0x410370
movzx eax, byte [esi + edx + 1]
and edi, 0x1f
and eax, 0x3f
cmp cl, 0xdf
jbe 0x410361
movzx esi, byte [esi + edx + 2]
shl eax, 6
and esi, 0x3f
or esi, eax
cmp cl, 0xf0
jb 0x410368
mov ecx, dword [esp]
and edi, 7
shl esi, 6
shl edi, 0x12
movzx eax, byte [ecx + edx + 3]
and eax, 0x3f
or eax, esi
mov esi, ecx
jmp 0x410364
shl edi, 6
or edi, eax
jmp 0x410370
shl edi, 0xc
or edi, esi
mov esi, dword [esp]
test bl, 1
je 0x4103bb
cmp edi, 0x110000
je 0x41013f
cmp edi, 0x80
mov eax, 1
jb 0x4103a9
mov eax, 2
cmp edi, 0x800
jb 0x4103a9
cmp edi, 0x10000
mov eax, 4
sbb eax, 0
add edx, eax
xor ebx, ebx
jmp 0x4102f2
test bl, 1
jne 0x41013f
mov al, 1
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4b81a8
push dword [esp + 4]
jmp 0x410404
push 0x4b81b8
push esi
jmp 0x41041c
add ebx, dword [esp + 0xc]
mov eax, dword [esp + 8]
cmp eax, ebx
cmova ebx, eax
push 0x4b81c8
push eax
push ebx
jmp 0x41041d
neg ecx
push 0x4b81a8
push dword [esp + 4]
jmp 0x41041c
push 0x4b81b8
push dword [esp + 0xc]
push eax
jmp 0x41041d
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
add ecx, ebx
cmp eax, ecx
cmova ecx, eax
push 0x4b81c8
push eax
push ecx
call fcn.004b4860
add esp, 0xc
ud2
push 0x4b8234
mov eax, dword [esp + 8]
push eax
push edx
push eax
push esi
call fcn.004b4dd0
add esp, 0x14
ud2