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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov esi, edx
mov ebx, ecx
nop dword [eax]
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 8]
jb 0x41e982
cmp dword [ebx + 0x40], 7
jne 0x41ed24
mov eax, dword [ebx + 0x40]
cmp eax, 8
ja case.default.0x41e98a
jmp dword [eax*4 + 0x41ee10]
mov eax, dword [esi]
movzx edx, byte [ecx + eax]
lea eax, [ecx + 1]
mov dword [esi + 4], eax
test edx, edx
je 0x41ee01
cmp edx, 0xe0
jae 0x41e9c4
cmp edx, 1
je 0x41e9c4
cmp byte [ebx + 0x50], 0
je 0x41e9fe
pop edi
pop esi
mov eax, 7
pop ebx
mov esp, ebp
pop ebp
ret
mov word [ebx + 0x50], 0x100
cmp dword [ebx + 0x3c], 0
jne 0x41e9e2
mov eax, dword [esi + 0xc]
add eax, dword [esi + 0x10]
mov dword [ebx + 0x18], eax
mov eax, dword [esi + 0x14]
sub eax, dword [esi + 0x10]
mov dword [ebx + 0x2c], eax
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x24], 0
cmp edx, 0x80
jb 0x41ea9c
mov eax, edx
mov dword [ebx + 0x40], 1
and eax, 0x1f
shl eax, 0x10
mov dword [ebx + 0x48], eax
cmp edx, 0xc0
jb 0x41ea34
mov byte [ebx + 0x51], 0
mov dword [ebx + 0x44], 5
jmp case.default.0x41e98a
cmp byte [ebx + 0x51], 0
jne 0x41e9b8
mov dword [ebx + 0x44], 6
cmp edx, 0xa0
jb case.default.0x41e98a
mov dword [ebx + 0x64], 0
lea edi, [ebx + 0x78]
mov dword [ebx + 0x54], 0
mov ecx, 0x1b9b
mov dword [ebx + 0x58], 0
mov eax, 0x4000400
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x60], 0
rep stosd dword es:[edi], eax
mov dword [ebx], 0xffffffff
mov dword [ebx + 4], 0
mov dword [ebx + 8], 5
jmp case.default.0x41e98a
cmp edx, 2
ja 0x41e9b8
mov dword [ebx + 0x40], 3
mov dword [ebx + 0x44], 8
jmp case.default.0x41e98a
mov eax, dword [esi]
movzx eax, byte [ecx + eax]
shl eax, 8
add dword [ebx + 0x48], eax
inc dword [esi + 4]
mov dword [ebx + 0x40], 2
jmp case.default.0x41e98a
mov eax, dword [esi]
movzx eax, byte [ecx + eax]
inc eax
add dword [ebx + 0x48], eax
inc dword [esi + 4]
mov dword [ebx + 0x40], 3
jmp case.default.0x41e98a
mov eax, dword [esi]
movzx eax, byte [ecx + eax]
shl eax, 8
mov dword [ebx + 0x4c], eax
inc dword [esi + 4]
mov dword [ebx + 0x40], 4
jmp case.default.0x41e98a
mov eax, dword [esi]
movzx eax, byte [ecx + eax]
inc eax
add dword [ebx + 0x4c], eax
inc dword [esi + 4]
mov eax, dword [ebx + 0x44]
mov dword [ebx + 0x40], eax
jmp case.default.0x41e98a
mov eax, dword [esi]
mov dl, byte [ecx + eax]
lea eax, [ecx + 1]
mov byte [ebp - 1], dl
mov dword [esi + 4], eax
cmp dl, 0xe0
ja 0x41e9b8
xor edi, edi
cmp dl, 0x2d
jb 0x41eb62
movzx ecx, dl
mov eax, 0x6c16c16d
mul ecx
sub ecx, edx
shr ecx, 1
add ecx, edx
mov dl, byte [ebp - 1]
shr ecx, 5
movzx eax, cl
add dl, 0xd3
inc edi
sub eax, 1
jne 0x41eb56
mov byte [ebp - 1], dl
mov ecx, edi
mov dword [ebx + 0x70], 0
mov eax, 1
xor edi, edi
shl eax, cl
dec eax
mov dword [ebx + 0x74], eax
cmp dl, 9
jb 0x41eb9c
movzx ecx, dl
mov eax, 0x38e38e39
mul ecx
shr edx, 1
movzx eax, dl
mov dl, byte [ebp - 1]
nop
add dl, 0xf7
inc edi
sub eax, 1
jne 0x41eb90
mov dword [ebx + 0x70], edi
movzx eax, dl
mov dword [ebx + 0x6c], eax
add eax, edi
cmp eax, 4
ja 0x41e9b8
mov ecx, edi
mov dword [ebx + 0x64], 0
mov eax, 1
mov dword [ebx + 0x54], 0
shl eax, cl
lea edi, [ebx + 0x78]
dec eax
mov dword [ebx + 0x58], 0
mov dword [ebx + 0x70], eax
mov ecx, 0x1b9b
mov dword [ebx + 0x5c], 0
mov eax, 0x4000400
mov dword [ebx + 0x60], 0
rep stosd dword es:[edi], eax
mov dword [ebx], 0xffffffff
mov dword [ebx + 4], 0
mov dword [ebx + 8], 5
mov dword [ebx + 0x40], 6
cmp dword [ebx + 0x4c], 5
jb 0x41e9b8
cmp dword [ebx + 8], 0
jbe 0x41ec46
nop word [eax + eax]
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 8]
je 0x41ed24
mov eax, dword [esi]
movzx ecx, byte [ecx + eax]
mov eax, dword [ebx + 4]
shl eax, 8
add ecx, eax
mov dword [ebx + 4], ecx
inc dword [esi + 4]
add dword [ebx + 8], 0xffffffff
jne 0x41ec20
add dword [ebx + 0x4c], 0xfffffffb
mov dword [ebx + 0x40], 7
mov edi, dword [esi + 0x14]
sub edi, dword [esi + 0x10]
cmp edi, dword [ebx + 0x48]
mov edx, dword [ebx + 0x2c]
mov ecx, edx
cmovae edi, dword [ebx + 0x48]
mov eax, dword [ebx + 0x20]
sub ecx, eax
add eax, edi
cmp ecx, edi
mov ecx, ebx
cmova edx, eax
mov dword [ebx + 0x28], edx
mov edx, esi
call fcn.0041e790
test al, al
je 0x41e9b8
mov eax, dword [ebx + 0x20]
mov edi, eax
mov ecx, dword [ebx + 0x1c]
sub edi, ecx
cmp dword [ebx + 0x3c], 0
je 0x41ecb8
cmp eax, dword [ebx + 0x2c]
jne 0x41ec9f
mov dword [ebx + 0x20], 0
mov eax, dword [ebx + 0x18]
add eax, ecx
push edi
push eax
mov eax, dword [esi + 0xc]
add eax, dword [esi + 0x10]
push eax
call fcn.00421640
mov eax, dword [ebx + 0x20]
add esp, 0xc
mov dword [ebx + 0x1c], eax
add dword [esi + 0x10], edi
sub dword [ebx + 0x48], edi
jne 0x41ed01
cmp dword [ebx + 0x4c], 0
ja 0x41e9b8
cmp dword [ebx + 0x68], 0
ja 0x41e9b8
cmp dword [ebx + 4], 0
jne 0x41e9b8
mov dword [ebx], 0xffffffff
mov dword [ebx + 4], 0
mov dword [ebx + 8], 5
mov dword [ebx + 0x40], 0
jmp case.default.0x41e98a
mov eax, dword [esi + 0x10]
cmp eax, dword [esi + 0x14]
je 0x41ed24
mov eax, dword [esi + 4]
cmp eax, dword [esi + 8]
jne case.default.0x41e98a
mov eax, dword [ebx + 0x6ee4]
cmp eax, dword [ebx + 0x4c]
jae case.default.0x41e98a
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x4c]
test eax, eax
je 0x41edf5
mov edi, eax
mov dword [ebp - 8], edi
nop dword [eax]
mov edx, dword [esi + 8]
cmp ecx, edx
jae 0x41ed24
mov eax, dword [esi + 0x10]
mov dword [ebp - 0xc], eax
mov eax, edi
mov edi, dword [esi + 0x14]
cmp dword [esi + 0x10], edi
jae 0x41eded
sub edi, dword [ebp - 0xc]
sub edx, ecx
mov eax, dword [ebx + 0x2c]
cmp edx, edi
mov ecx, dword [ebp - 8]
cmovae edx, edi
sub eax, dword [ebx + 0x20]
cmp edx, eax
mov edi, ecx
cmovbe eax, edx
cmp eax, ecx
cmovbe edi, eax
sub ecx, edi
mov dword [ebx + 0x4c], ecx
mov eax, dword [esi + 4]
add eax, dword [esi]
push edi
push eax
mov eax, dword [ebx + 0x18]
add eax, dword [ebx + 0x20]
push eax
call fcn.00421640
mov ecx, dword [ebx + 0x20]
add esp, 0xc
add ecx, edi
mov dword [ebx + 0x20], ecx
cmp dword [ebx + 0x24], ecx
jae 0x41eda5
mov dword [ebx + 0x24], ecx
cmp dword [ebx + 0x3c], 0
je 0x41edd1
xor edx, edx
mov eax, ecx
cmp ecx, dword [ebx + 0x2c]
push edi
cmove eax, edx
mov dword [ebx + 0x20], eax
mov eax, dword [esi + 4]
add eax, dword [esi]
push eax
mov eax, dword [esi + 0xc]
add eax, dword [esi + 0x10]
push eax
call fcn.00421640
mov ecx, dword [ebx + 0x20]
add esp, 0xc
mov dword [ebx + 0x1c], ecx
add dword [esi + 4], edi
add dword [esi + 0x10], edi
mov eax, dword [ebx + 0x4c]
mov edi, eax
mov ecx, dword [esi + 4]
mov dword [ebp - 8], eax
test eax, eax
jne 0x41ed40
test eax, eax
jne 0x41ed24
mov dword [ebx + 0x40], 0
jmp case.default.0x41e98a
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret