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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x7c
mov ebx, dword [esp + 0x90]
mov ecx, dword [esp + 0x98]
mov edi, dword [esp + 0x9c]
mov esi, dword [esp + 0xa0]
test ebx, ebx
jne 0x41e4b5
test ecx, ecx
je 0x41e49d
mov dword [ecx], 0
mov eax, 0xfffffffe
test esi, esi
je 0x41f4ce
mov dword [esi], 0
jmp 0x41f4ce
mov eax, dword [esp + 0x94]
mov dword [ebx + 0x70], eax
mov dword [ebx + 0x78], ecx
mov dword [ebx + 0x74], edi
mov dword [ebx + 0x7c], esi
mov dword [ebx + 0x84], eax
mov dword [esp + 0x10], 0
test ecx, ecx
je 0x41e4e0
mov eax, dword [ecx]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x88], eax
mov dword [ebx + 0x8c], 0
mov eax, dword [esp + 0xa4]
mov dword [ebx + 0x80], eax
cmp dword [ebx], 0
sete dl
mov eax, esi
or eax, edi
setne al
cmp dl, al
jne 0x41e54e
cmp dword [ebx + 0x6c], 0
jne 0x41e54e
mov eax, dword [ebx + 0x68]
test eax, eax
je 0x41e529
cmp dword [esp + 0xa4], 4
jne 0x41e54e
test ecx, ecx
je 0x41e53c
cmp dword [ecx], 0
je 0x41e53c
cmp dword [esp + 0x94], 0
je 0x41e552
test esi, esi
je 0x41e573
cmp dword [esi], 0
je 0x41e573
test edi, edi
jne 0x41e573
jmp 0x41f476
test ecx, ecx
je 0x41e558
mov dword [ecx], 0
test esi, esi
je 0x41e562
mov dword [esi], 0
mov dword [ebx + 0x6c], 0xfffffffe
mov eax, 0xfffffffe
jmp 0x41f4ce
xor ecx, ecx
cmp dword [esp + 0xa4], 4
sete cl
mov dword [esp + 0x40], ecx
or eax, ecx
mov dword [ebx + 0x68], eax
cmp dword [ebx + 0x5c], 0
jne 0x41f46a
cmp dword [ebx + 0x60], 0
jne 0x41f46a
mov eax, dword [ebx + 8]
and eax, 0xb4fff
mov edi, dword [esp + 0x94]
mov dword [esp + 0x24], edi
cmp eax, 0x4001
jne 0x41ed54
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x24]
mov dword [esp + 0x18], eax
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x24], eax
mov eax, dword [ebx + 0x38]
mov dword [esp + 0x20], eax
mov edi, dword [ebx + 0x28]
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1c]
and eax, 0x7fff
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 0x88]
test eax, eax
je 0x41eaf9
mov edx, dword [esp + 0x1c]
add edx, dword [esp + 0x10]
mov ecx, edx
and ecx, 0x7fff
mov esi, 0x1000
sub esi, dword [esp + 0x10]
cmp esi, eax
cmova esi, eax
sub eax, esi
mov dword [ebx + 0x88], eax
add dword [esp + 0x10], esi
test esi, esi
je 0x41e6c0
mov ebp, 0x8000
sub ebp, ecx
cmp ebp, esi
cmova ebp, esi
lea edx, [ebx + 0x90]
mov dword [esp + 8], ebp
mov eax, dword [ebx + 0x84]
mov dword [esp + 4], eax
lea eax, [edx + ecx]
mov dword [esp + 0x30], ecx
mov dword [esp + 0x2c], edx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [esp + 0x30]
cmp ecx, 0x100
mov edx, dword [esp + 0x2c]
ja 0x41e6a9
mov eax, 0x101
sub eax, ecx
cmp eax, ebp
cmova eax, ebp
mov dword [esp + 8], eax
mov eax, dword [ebx + 0x84]
mov dword [esp + 4], eax
lea eax, [edx + ecx + 0x8000]
mov dword [esp + 0x2c], ecx
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
mov ecx, dword [esp + 0x2c]
add dword [ebx + 0x84], ebp
lea eax, [ecx + ebp]
and eax, 0x7fff
mov ecx, eax
sub esi, ebp
jmp 0x41e62d
mov eax, 0x8000
sub eax, dword [esp + 0x10]
cmp dword [esp + 0x18], eax
cmovbe eax, dword [esp + 0x18]
mov dword [esp + 0x18], eax
cmp dword [ebx + 0x80], 0
jne 0x41e8e1
cmp dword [esp + 0x10], 0xfff
ja 0x41e8e1
jmp 0x41eb0d
lea ebp, [ebx + 0x90]
mov eax, dword [esp + 0x28]
add eax, ebp
mov dword [esp + 0x30], eax
mov dword [esp + 8], 4
mov dword [esp + 4], eax
lea edx, [esp + 0x6c]
mov dword [esp], edx
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x34], eax
and eax, 0xffffff
mov dword [esp + 0x2c], eax
shr eax, 0x11
xor eax, dword [esp + 0x2c]
and eax, 0xfff
add eax, eax
add eax, ebx
mov si, word [eax + 0x29272]
mov ecx, dword [esp + 0x1c]
mov word [eax + 0x29272], cx
mov eax, ecx
sub eax, esi
movzx eax, ax
mov dword [esp + 0x68], eax
cmp eax, dword [esp + 0x18]
lea edx, [esp + 0x6c]
ja 0x41e9a0
and esi, 0x7fff
add esi, ebp
mov dword [esp + 8], 4
mov dword [esp + 4], esi
mov dword [esp], edx
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x6c]
and eax, 0xffffff
cmp dword [esp + 0x2c], eax
jne 0x41e9a0
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x44], 0x20
mov dword [esp + 0x3c], ebp
add ebp, 2
mov eax, ebp
call fcn.0040ec3c
mov word [esp + 0x48], ax
mov dword [esp + 0x38], esi
add esi, 2
mov eax, esi
call fcn.0040ec3c
cmp word [esp + 0x48], ax
je 0x41e8f1
mov al, byte [ebp]
mov cl, byte [esi]
cmp dword [esp + 0x44], 0
je 0x41e984
mov edx, ebp
sub edx, dword [esp + 0x30]
cmp al, cl
sete al
movzx eax, al
add edx, eax
cmp edx, 2
jbe 0x41e9a0
mov eax, dword [esp + 0x68]
cmp edx, 3
je 0x41e995
cmp edx, dword [esp + 0x10]
mov esi, edx
cmova esi, dword [esp + 0x10]
dec eax
mov dword [esp + 0x68], eax
lea eax, [esi - 3]
mov byte [edi], al
mov dword [esp + 8], 4
lea eax, [esp + 0x68]
mov dword [esp + 4], eax
lea eax, [edi + 1]
mov dword [esp], eax
call sub.msvcrt.dll_memcpy
add edi, 3
mov eax, dword [esp + 0x14]
mov al, byte [eax]
mov byte [esp + 0x2c], al
shr al, 1
or eax, 0xffffff80
mov ecx, dword [esp + 0x14]
mov byte [ecx], al
mov edx, dword [esp + 0x68]
mov eax, edx
and eax, 0x1ff
movzx eax, byte [eax + 0x42a7a0]
mov ecx, edx
shr ecx, 8
movzx ecx, byte [ecx + 0x42a1c0]
cmp edx, 0x200
cmovae eax, ecx
inc word [ebx + eax*2 + 0x83d2]
movzx eax, word [esi + esi + 0x42a33a]
inc word [ebx + eax*2 + 0x8192]
dec dword [esp + 0x20]
jne 0x41e8a1
mov dword [esp + 0x14], edi
inc edi
mov dword [esp + 0x20], 8
add dword [esp + 0x24], esi
add dword [esp + 0x1c], esi
mov eax, dword [esp + 0x18]
add eax, esi
cmp eax, 0x8000
mov edx, 0x8000
cmovbe edx, eax
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x28]
add eax, esi
and eax, 0x7fff
mov dword [esp + 0x28], eax
sub dword [esp + 0x10], esi
lea eax, [ebx + 0x1926a]
cmp edi, eax
ja 0x41e9c4
cmp dword [esp + 0x10], 3
ja 0x41e6f6
jmp 0x41ea99
mov eax, dword [esp + 0x3c]
lea ebp, [eax + 4]
mov eax, ebp
call fcn.0040ec3c
mov word [esp + 0x48], ax
mov eax, dword [esp + 0x38]
lea esi, [eax + 4]
mov eax, esi
call fcn.0040ec3c
cmp word [esp + 0x48], ax
jne 0x41e7d1
mov eax, dword [esp + 0x3c]
lea ebp, [eax + 6]
mov eax, ebp
call fcn.0040ec3c
mov word [esp + 0x48], ax
mov eax, dword [esp + 0x38]
lea esi, [eax + 6]
mov eax, esi
call fcn.0040ec3c
cmp word [esp + 0x48], ax
jne 0x41e7d1
mov ebp, dword [esp + 0x3c]
add ebp, 8
mov eax, ebp
call fcn.0040ec3c
mov word [esp + 0x3c], ax
mov esi, dword [esp + 0x38]
add esi, 8
mov eax, esi
call fcn.0040ec3c
cmp word [esp + 0x3c], ax
jne 0x41e7d1
dec dword [esp + 0x44]
jne 0x41e7a5
jmp 0x41e7d1
cmp dword [esp + 0x68], 0
je 0x41e9a0
mov edx, 0x102
jmp 0x41e7fa
cmp eax, 0x1fff
jbe 0x41e807
mov al, byte [esp + 0x2c]
mov byte [edi], al
mov eax, dword [esp + 0x14]
shr byte [eax], 1
movzx eax, byte [esp + 0x34]
inc word [ebx + eax*2 + 0x8192]
inc edi
mov esi, 1
jmp 0x41e88e
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], edx
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x28], edi
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x2c], eax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x38], eax
xor edx, edx
mov eax, ebx
call fcn.0041f9d4
test eax, eax
jne 0x41ea17
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x24], eax
mov edi, dword [ebx + 0x28]
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x38]
mov dword [esp + 0x20], eax
jmp 0x41e8e1
not eax
shr eax, 0x1f
test eax, eax
jne 0x41f39c
jmp 0x41f40e
mov eax, dword [esp + 0x28]
movzx eax, byte [ebx + eax + 0x90]
inc dword [esp + 0x24]
lea ecx, [edi + 1]
mov byte [edi], al
mov esi, dword [esp + 0x14]
shr byte [esi], 1
dec dword [esp + 0x20]
jne 0x41ea59
mov dword [esp + 0x14], ecx
lea ecx, [edi + 2]
mov dword [esp + 0x20], 8
inc word [ebx + eax*2 + 0x8192]
inc dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 0x8000
mov edx, 0x8000
cmovbe edx, eax
mov dword [esp + 0x18], edx
mov eax, dword [esp + 0x28]
inc eax
and eax, 0x7fff
mov dword [esp + 0x28], eax
dec dword [esp + 0x10]
lea eax, [ebx + 0x1926a]
cmp ecx, eax
ja 0x41eaa5
mov edi, ecx
cmp dword [esp + 0x10], 0
jne 0x41ea29
jmp 0x41e5f5
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x24], edx
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x28], ecx
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x2c], eax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x38], eax
xor edx, edx
mov eax, ebx
call fcn.0041f9d4
test eax, eax
jne 0x41ea17
mov eax, dword [ebx + 0x3c]
mov dword [esp + 0x24], eax
mov ecx, dword [ebx + 0x28]
mov eax, dword [ebx + 0x2c]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x38]
mov dword [esp + 0x20], eax
jmp 0x41ea97
cmp dword [ebx + 0x80], 0
je 0x41eb0d
cmp dword [esp + 0x10], 0
jne 0x41e603
mov eax, dword [esp + 0x1c]
mov dword [ebx + 0x1c], eax
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x20], eax
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x24], eax
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x3c], eax
mov dword [ebx + 0x28], edi
mov eax, dword [esp + 0x14]
mov dword [ebx + 0x2c], eax
mov eax, dword [esp + 0x20]
mov dword [ebx + 0x38], eax
jmp 0x41f39c
cmp dword [esp + 0xa4], 0
je 0x41f388
cmp dword [ebx + 0x20], 0
je 0x41f388
mov ebp, dword [ebx + 0x20]
mov eax, dword [ebx + 0x24]
mov dword [esp + 0x14], eax
add eax, ebp
cmp eax, 1
jbe 0x41ee5f
mov edx, dword [ebx + 0x1c]
add edx, ebp
mov ecx, edx
and ecx, 0x7fff
lea esi, [edx - 2]
mov eax, esi
and eax, 0x7fff
movzx eax, byte [ebx + eax + 0x90]
shl eax, 5
dec edx
and edx, 0x7fff
movzx edx, byte [ebx + edx + 0x90]
xor eax, edx
mov edx, 0x102
sub edx, ebp
cmp edx, dword [esp + 0x10]
cmova edx, dword [esp + 0x10]
mov edi, dword [esp + 0x24]
add edi, edx
mov dword [esp + 0x18], edi
sub dword [esp + 0x10], edx
add edx, ebp
mov dword [ebx + 0x20], edx
mov edx, dword [esp + 0x24]
cmp dword [esp + 0x18], edx
jne 0x41ed64
mov eax, dword [ebx + 0x20]
mov dword [esp + 0x18], eax
mov eax, 0x8000
sub eax, dword [esp + 0x18]
cmp eax, dword [esp + 0x14]
cmova eax, dword [esp + 0x14]
mov dword [esp + 0x28], eax
mov dword [ebx + 0x24], eax
cmp dword [esp + 0x18], 0x101
jbe 0x41ee72
mov ebp, dword [ebx + 0x50]
test ebp, ebp
jne 0x41ec0a
mov ebp, 2
mov eax, dword [ebx + 0x1c]
mov dword [esp + 0x30], eax
and eax, 0x7fff
mov dword [esp + 0x1c], eax
mov eax, dword [ebx + 8]
mov edi, eax
and edi, 0x90000
je 0x41eed1
xor edi, edi
cmp dword [esp + 0x28], 0
jne 0x41ee85
cmp dword [esp + 0x1c], edi
je 0x41f163
test byte [ebx + 0xa], 2
jne 0x41f15a
mov eax, dword [ebx + 0x50]
mov edx, dword [ebx + 0x28]
test eax, eax
je 0x41f236
mov esi, dword [ebx + 0x3c]
cmp eax, ebp
jae 0x41f19c
mov eax, dword [ebx + 0x54]
movzx ecx, al
inc esi
mov dword [ebx + 0x3c], esi
lea esi, [edx + 1]
mov dword [ebx + 0x28], esi
mov byte [edx], al
mov eax, dword [ebx + 0x2c]
shr byte [eax], 1
mov eax, dword [ebx + 0x38]
dec eax
je 0x41f16c
mov dword [ebx + 0x38], eax
inc word [ebx + ecx*2 + 0x8192]
cmp ebp, 0x7f
jbe 0x41f320
mov eax, dword [ebx + 0x28]
add dword [ebx + 0x3c], ebp
lea edx, [ebp - 3]
mov byte [eax], dl
lea edx, [edi - 1]
mov eax, dword [ebx + 0x28]
mov byte [eax + 1], dl
mov esi, edx
shr esi, 8
mov eax, dword [ebx + 0x28]
mov ecx, esi
mov byte [eax + 2], cl
add dword [ebx + 0x28], 3
mov edi, dword [ebx + 0x2c]
mov al, byte [edi]
shr al, 1
or eax, 0xffffff80
mov byte [edi], al
mov eax, dword [ebx + 0x38]
dec eax
je 0x41f184
mov dword [ebx + 0x38], eax
mov eax, edx
and eax, 0x1ff
movzx eax, byte [eax + 0x42a7a0]
and esi, 0x7f
movzx ecx, byte [esi + 0x42a1c0]
cmp edx, 0x200
cmovae eax, ecx
inc word [ebx + eax*2 + 0x83d2]
movzx eax, word [ebp + ebp + 0x42a33a]
inc word [ebx + eax*2 + 0x8192]
mov dword [ebx + 0x50], 0
add dword [ebx + 0x1c], ebp
sub dword [ebx + 0x20], ebp
add dword [ebx + 0x24], ebp
cmp dword [ebx + 0x24], 0x8000
mov eax, 0x8000
cmovbe eax, dword [ebx + 0x24]
mov dword [ebx + 0x24], eax
mov eax, dword [ebx + 0x28]
lea edx, [ebx + 0x1926a]
cmp eax, edx
ja 0x41f35b
mov edx, dword [ebx + 0x3c]
cmp edx, 0x7c00
ja 0x41f33f
cmp dword [esp + 0x10], 0
jne 0x41eb57
jmp 0x41eb3f
inc dword [esp + 0x24]
mov edx, dword [esp + 0x24]
movzx edx, byte [edx - 1]
mov byte [ebx + ecx + 0x90], dl
cmp ecx, 0x100
ja 0x41ed86
mov byte [ebx + ecx + 0x8090], dl
shl eax, 5
xor eax, edx
and eax, 0x7fff
lea edx, [eax + eax]
add edx, ebx
mov ebp, esi
and ebp, 0x7fff
mov di, word [edx + 0x29272]
mov word [ebx + ebp*2 + 0x19272], di
mov word [edx + 0x29272], si
inc ecx
and ecx, 0x7fff
inc esi
jmp 0x41ebc2
cmp eax, 0x101
ja 0x41ebd0
inc dword [esp + 0x24]
mov edi, dword [esp + 0x24]
mov dl, byte [edi - 1]
mov ecx, dword [ebx + 0x1c]
lea esi, [ecx + eax]
and esi, 0x7fff
dec dword [esp + 0x10]
mov byte [ebx + esi + 0x90], dl
cmp esi, 0x100
ja 0x41edfc
mov byte [ebx + esi + 0x8090], dl
inc eax
mov dword [ebx + 0x20], eax
mov edi, dword [esp + 0x14]
lea esi, [edi + eax]
cmp esi, 2
jbe 0x41ee5f
add eax, ecx
lea esi, [eax - 3]
mov edi, esi
and edi, 0x7fff
sub eax, 2
and eax, 0x7fff
movzx ecx, byte [ebx + eax + 0x90]
shl ecx, 5
movzx eax, byte [ebx + edi + 0x90]
shl eax, 0xa
xor eax, ecx
movzx ecx, dl
xor ecx, eax
and ecx, 0x7fff
add ecx, ecx
lea eax, [ebx + ecx]
mov dx, word [eax + 0x29272]
mov word [ebx + edi*2 + 0x19272], dx
mov word [eax + 0x29272], si
mov eax, dword [ebx + 0x20]
cmp dword [esp + 0x10], 0
jne 0x41edc0
jmp 0x41ebd0
cmp dword [esp + 0xa4], 0
jne 0x41ebfe
jmp 0x41f388
and eax, 0x80000
mov edi, eax
jne 0x41f483
mov eax, dword [esp + 0x1c]
dec eax
and eax, 0x7fff
mov al, byte [ebx + eax + 0x90]
xor ebp, ebp
mov esi, dword [esp + 0x1c]
lea edx, [ebx + esi]
cmp dword [esp + 0x18], ebp
je 0x41eebe
cmp al, byte [edx + ebp + 0x90]
jne 0x41eebe
inc ebp
jmp 0x41eeac
cmp ebp, 2
jbe 0x41f153
mov edi, 1
jmp 0x41ec38
xor eax, eax
cmp ebp, 0x1f
seta al
mov eax, dword [ebx + eax*4 + 0xc]
mov dword [esp + 0x48], eax
lea eax, [ebx + 0x90]
mov dword [esp + 0x4c], eax
add eax, dword [esp + 0x1c]
mov dword [esp + 0x34], eax
mov eax, dword [esp + 0x1c]
add eax, 0x8f
mov dword [esp + 0x44], eax
add eax, ebp
add eax, ebx
call fcn.0040ec18
mov word [esp + 0x2c], ax
mov eax, dword [esp + 0x34]
call fcn.0040ec3c
mov word [esp + 0x52], ax
cmp dword [esp + 0x18], ebp
jbe 0x41ec38
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
dec dword [esp + 0x48]
je 0x41f13d
mov eax, dword [esp + 0x14]
mov ax, word [ebx + eax*2 + 0x19272]
test ax, ax
je 0x41f13d
mov edx, dword [esp + 0x30]
sub edx, eax
movzx ecx, dx
mov dword [esp + 0x20], ecx
cmp dword [esp + 0x28], ecx
jb 0x41f13d
and eax, 0x7fff
mov dword [esp + 0x14], eax
lea esi, [ebp + 0x8f]
add eax, esi
add eax, ebx
call fcn.0040ec18
cmp ax, word [esp + 0x2c]
je 0x41f015
mov eax, dword [esp + 0x14]
mov ax, word [ebx + eax*2 + 0x19272]
test ax, ax
je 0x41f13d
mov edx, dword [esp + 0x30]
sub edx, eax
movzx ecx, dx
mov dword [esp + 0x20], ecx
cmp dword [esp + 0x28], ecx
jb 0x41f13d
and eax, 0x7fff
mov dword [esp + 0x14], eax
add eax, esi
add eax, ebx
call fcn.0040ec18
cmp word [esp + 0x2c], ax
je 0x41f015
mov eax, dword [esp + 0x14]
mov ax, word [ebx + eax*2 + 0x19272]
test ax, ax
je 0x41f13d
mov edx, dword [esp + 0x30]
sub edx, eax
movzx ecx, dx
mov dword [esp + 0x20], ecx
cmp dword [esp + 0x28], ecx
jb 0x41f13d
and eax, 0x7fff
mov dword [esp + 0x14], eax
add eax, esi
add eax, ebx
call fcn.0040ec18
cmp word [esp + 0x2c], ax
jne 0x41ef2e
cmp dword [esp + 0x20], 0
je 0x41f13d
mov esi, dword [esp + 0x4c]
add esi, dword [esp + 0x14]
mov eax, esi
call fcn.0040ec3c
cmp word [esp + 0x52], ax
jne 0x41ef2e
mov eax, dword [esp + 0x34]
add eax, 0x100
mov dword [esp + 0x54], eax
mov edx, dword [esp + 0x34]
mov dword [esp + 0x3c], edx
add edx, 2
mov eax, edx
mov dword [esp + 0x5c], edx
call fcn.0040ec3c
mov word [esp + 0x58], ax
mov dword [esp + 0x38], esi
add esi, 2
mov eax, esi
call fcn.0040ec3c
cmp word [esp + 0x58], ax
mov edx, dword [esp + 0x5c]
jne 0x41f48a
mov eax, dword [esp + 0x3c]
lea edx, [eax + 4]
mov eax, edx
mov dword [esp + 0x5c], edx
call fcn.0040ec3c
mov word [esp + 0x58], ax
mov eax, dword [esp + 0x38]
lea esi, [eax + 4]
mov eax, esi
call fcn.0040ec3c
cmp word [esp + 0x58], ax
mov edx, dword [esp + 0x5c]
jne 0x41f48a
mov eax, dword [esp + 0x3c]
lea edx, [eax + 6]
mov eax, edx
mov dword [esp + 0x5c], edx
call fcn.0040ec3c
mov word [esp + 0x58], ax
mov eax, dword [esp + 0x38]
lea esi, [eax + 6]
mov eax, esi
call fcn.0040ec3c
cmp word [esp + 0x58], ax
mov edx, dword [esp + 0x5c]
jne 0x41f48a
mov edx, dword [esp + 0x3c]
add edx, 8
mov eax, edx
mov dword [esp + 0x58], edx
call fcn.0040ec3c
mov word [esp + 0x3c], ax
mov esi, dword [esp + 0x38]
add esi, 8
mov eax, esi
call fcn.0040ec3c
cmp word [esp + 0x3c], ax
mov edx, dword [esp + 0x58]
jne 0x41f48a
cmp edx, dword [esp + 0x54]
jne 0x41f04b
cmp dword [esp + 0x18], 0x102
mov ecx, 0x102
mov ebp, dword [esp + 0x18]
cmova ebp, ecx
mov edi, dword [esp + 0x20]
cmp ebp, 3
jne 0x41ec38
cmp edi, 0x1fff
ja 0x41f163
jmp 0x41ec38
xor ebp, ebp
jmp 0x41ec38
cmp ebp, 5
ja 0x41ec4c
xor ebp, ebp
xor edi, edi
jmp 0x41ec4c
mov dword [ebx + 0x38], 8
mov eax, dword [ebx + 0x28]
lea edx, [eax + 1]
mov dword [ebx + 0x28], edx
mov dword [ebx + 0x2c], eax
jmp 0x41ec89
mov dword [ebx + 0x38], 8
mov eax, dword [ebx + 0x28]
lea edi, [eax + 1]
mov dword [ebx + 0x28], edi
mov dword [ebx + 0x2c], eax
jmp 0x41ecd8
mov edi, dword [ebx + 0x4c]
add esi, eax
mov dword [ebx + 0x3c], esi
lea esi, [eax - 3]
mov ecx, esi
mov byte [edx], cl
lea ebp, [edi - 1]
mov ecx, dword [ebx + 0x28]
mov edx, ebp
mov byte [ecx + 1], dl
mov esi, ebp
shr esi, 8
mov ecx, dword [ebx + 0x28]
mov edx, esi
mov byte [ecx + 2], dl
add dword [ebx + 0x28], 3
mov edi, dword [ebx + 0x2c]
mov cl, byte [edi]
shr cl, 1
or ecx, 0xffffff80
mov byte [edi], cl
mov ecx, dword [ebx + 0x38]
dec ecx
je 0x41f1de
mov dword [ebx + 0x38], ecx
jmp 0x41f1f1
mov dword [ebx + 0x38], 8
mov ecx, dword [ebx + 0x28]
lea edi, [ecx + 1]
mov dword [ebx + 0x28], edi
mov dword [ebx + 0x2c], ecx
mov ecx, ebp
and ecx, 0x1ff
movzx ecx, byte [ecx + 0x42a7a0]
and esi, 0x7f
movzx esi, byte [esi + 0x42a1c0]
cmp ebp, 0x200
cmovae ecx, esi
inc word [ebx + ecx*2 + 0x83d2]
movzx eax, word [eax + eax + 0x42a33a]
inc word [ebx + eax*2 + 0x8192]
mov eax, dword [ebx + 0x50]
lea ebp, [eax - 1]
jmp 0x41ed11
test edi, edi
jne 0x41f281
mov eax, dword [esp + 0x1c]
movzx eax, byte [ebx + eax + 0x90]
inc dword [ebx + 0x3c]
lea ecx, [edx + 1]
mov dword [ebx + 0x28], ecx
mov byte [edx], al
mov edx, dword [ebx + 0x2c]
shr byte [edx], 1
mov edx, dword [ebx + 0x38]
dec edx
je 0x41f261
mov dword [ebx + 0x38], edx
jmp 0x41f274
mov dword [ebx + 0x38], 8
mov edx, dword [ebx + 0x28]
lea ecx, [edx + 1]
mov dword [ebx + 0x28], ecx
mov dword [ebx + 0x2c], edx
inc word [ebx + eax*2 + 0x8192]
jmp 0x41f335
cmp dword [ebx + 0x14], 0
jne 0x41f296
test byte [ebx + 0xa], 1
jne 0x41f296
cmp ebp, 0x7f
jbe 0x41f320
add dword [ebx + 0x3c], ebp
lea eax, [ebp - 3]
mov byte [edx], al
lea edx, [edi - 1]
mov eax, dword [ebx + 0x28]
mov byte [eax + 1], dl
mov esi, edx
shr esi, 8
mov eax, dword [ebx + 0x28]
mov ecx, esi
mov byte [eax + 2], cl
add dword [ebx + 0x28], 3
mov edi, dword [ebx + 0x2c]
mov al, byte [edi]
shr al, 1
or eax, 0xffffff80
mov byte [edi], al
mov eax, dword [ebx + 0x38]
dec eax
je 0x41f2cf
mov dword [ebx + 0x38], eax
jmp 0x41f2e2
mov dword [ebx + 0x38], 8
mov eax, dword [ebx + 0x28]
lea edi, [eax + 1]
mov dword [ebx + 0x28], edi
mov dword [ebx + 0x2c], eax
mov eax, edx
and eax, 0x1ff
movzx eax, byte [eax + 0x42a7a0]
and esi, 0x7f
movzx ecx, byte [esi + 0x42a1c0]
cmp edx, 0x200
cmovae eax, ecx
inc word [ebx + eax*2 + 0x83d2]
movzx eax, word [ebp + ebp + 0x42a33a]
inc word [ebx + eax*2 + 0x8192]
jmp 0x41ed18
mov eax, dword [esp + 0x1c]
movzx eax, byte [ebx + eax + 0x90]
mov dword [ebx + 0x54], eax
mov dword [ebx + 0x4c], edi
mov dword [ebx + 0x50], ebp
mov ebp, 1
jmp 0x41ed18
lea ecx, [ebx + 0x9272]
sub eax, ecx
imul eax, eax, 0x73
shr eax, 7
cmp edx, eax
jbe 0x41f35b
test byte [ebx + 0xa], 8
je 0x41ed54
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x84], eax
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x88], eax
xor edx, edx
mov eax, ebx
call fcn.0041f9d4
test eax, eax
je 0x41ed54
js 0x41f40e
jmp 0x41f39c
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x84], eax
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x88], eax
test dword [ebx + 8], 0x3000
je 0x41f3d9
cmp dword [esp + 0x94], 0
je 0x41f3d9
mov eax, dword [ebx + 0x84]
sub eax, dword [esp + 0x94]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x18]
mov dword [esp], eax
call fcn.00418a28
mov dword [ebx + 0x18], eax
cmp dword [esp + 0xa4], 0
je 0x41f46a
cmp dword [ebx + 0x20], 0
jne 0x41f46a
cmp dword [ebx + 0x88], 0
jne 0x41f46a
cmp dword [ebx + 0x5c], 0
jne 0x41f46a
mov edx, dword [esp + 0xa4]
mov eax, ebx
call fcn.0041f9d4
test eax, eax
jns 0x41f416
mov eax, dword [ebx + 0x6c]
jmp 0x41f4ce
mov eax, dword [esp + 0x40]
mov dword [ebx + 0x60], eax
cmp dword [esp + 0xa4], 3
jne 0x41f46a
mov dword [esp + 8], 0x10000
mov dword [esp + 4], 0
lea eax, [ebx + 0x29272]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [esp + 8], 0x10000
mov dword [esp + 4], 0
lea eax, [ebx + 0x19272]
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov dword [ebx + 0x24], 0
mov eax, ebx
call fcn.0041fecc
mov dword [ebx + 0x6c], eax
jmp 0x41f4ce
test ecx, ecx
jne 0x41e552
jmp 0x41e55c
xor edi, edi
jmp 0x41ec38
mov al, byte [esi]
cmp byte [edx], al
sete al
movzx eax, al
sub edx, dword [esp + 0x34]
add edx, eax
cmp ebp, edx
jae 0x41ef2e
cmp dword [esp + 0x18], edx
mov ebp, dword [esp + 0x18]
cmova ebp, edx
jbe 0x41f139
mov eax, dword [esp + 0x44]
add eax, ebp
add eax, ebx
call fcn.0040ec18
mov word [esp + 0x2c], ax
mov edi, dword [esp + 0x20]
jmp 0x41ef2e
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret