Function at 0x40fb2c
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 0x40fb75
test ecx, ecx
je 0x40fb5d
mov dword [ecx], 0
mov eax, 0xfffffffe
test esi, esi
je 0x410b8e
mov dword [esi], 0
jmp 0x410b8e
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 0x40fba0
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 0x40fc0e
cmp dword [ebx + 0x6c], 0
jne 0x40fc0e
mov eax, dword [ebx + 0x68]
test eax, eax
je 0x40fbe9
cmp dword [esp + 0xa4], 4
jne 0x40fc0e
test ecx, ecx
je 0x40fbfc
cmp dword [ecx], 0
je 0x40fbfc
cmp dword [esp + 0x94], 0
je 0x40fc12
test esi, esi
je 0x40fc33
cmp dword [esi], 0
je 0x40fc33
test edi, edi
jne 0x40fc33
jmp 0x410b36
test ecx, ecx
je 0x40fc18
mov dword [ecx], 0
test esi, esi
je 0x40fc22
mov dword [esi], 0
mov dword [ebx + 0x6c], 0xfffffffe
mov eax, 0xfffffffe
jmp 0x410b8e
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 0x410b2a
cmp dword [ebx + 0x60], 0
jne 0x410b2a
mov eax, dword [ebx + 8]
and eax, 0xb4fff
mov edi, dword [esp + 0x94]
mov dword [esp + 0x24], edi
cmp eax, 0x4001
jne 0x410414
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 0x4101b9
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 0x40fd80
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 0x40fd69
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 0x40fced
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 0x40ffa1
cmp dword [esp + 0x10], 0xfff
ja 0x40ffa1
jmp 0x4101cd
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 0x410060
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 0x410060
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x44], 0x20
mov dword [esp + 0x3c], ebp
add ebp, 2
mov eax, ebp
call fcn.00407574
mov word [esp + 0x48], ax
mov dword [esp + 0x38], esi
add esi, 2
mov eax, esi
call fcn.00407574
cmp word [esp + 0x48], ax
je 0x40ffb1
mov al, byte [ebp]
mov cl, byte [esi]
cmp dword [esp + 0x44], 0
je 0x410044
mov edx, ebp
sub edx, dword [esp + 0x30]
cmp al, cl
sete al
movzx eax, al
add edx, eax
cmp edx, 2
jbe 0x410060
mov eax, dword [esp + 0x68]
cmp edx, 3
je 0x410055
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 + 0x418a00]
mov ecx, edx
shr ecx, 8
movzx ecx, byte [ecx + 0x418420]
cmp edx, 0x200
cmovae eax, ecx
inc word [ebx + eax*2 + 0x83d2]
movzx eax, word [esi + esi + 0x41859a]
inc word [ebx + eax*2 + 0x8192]
dec dword [esp + 0x20]
jne 0x40ff61
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 0x410084
cmp dword [esp + 0x10], 3
ja 0x40fdb6
jmp 0x410159
mov eax, dword [esp + 0x3c]
lea ebp, [eax + 4]
mov eax, ebp
call fcn.00407574
mov word [esp + 0x48], ax
mov eax, dword [esp + 0x38]
lea esi, [eax + 4]
mov eax, esi
call fcn.00407574
cmp word [esp + 0x48], ax
jne 0x40fe91
mov eax, dword [esp + 0x3c]
lea ebp, [eax + 6]
mov eax, ebp
call fcn.00407574
mov word [esp + 0x48], ax
mov eax, dword [esp + 0x38]
lea esi, [eax + 6]
mov eax, esi
call fcn.00407574
cmp word [esp + 0x48], ax
jne 0x40fe91
mov ebp, dword [esp + 0x3c]
add ebp, 8
mov eax, ebp
call fcn.00407574
mov word [esp + 0x3c], ax
mov esi, dword [esp + 0x38]
add esi, 8
mov eax, esi
call fcn.00407574
cmp word [esp + 0x3c], ax
jne 0x40fe91
dec dword [esp + 0x44]
jne 0x40fe65
jmp 0x40fe91
cmp dword [esp + 0x68], 0
je 0x410060
mov edx, 0x102
jmp 0x40feba
cmp eax, 0x1fff
jbe 0x40fec7
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 0x40ff4e
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.00411094
test eax, eax
jne 0x4100d7
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 0x40ffa1
not eax
shr eax, 0x1f
test eax, eax
jne 0x410a5c
jmp 0x410ace
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 0x410119
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 0x410165
mov edi, ecx
cmp dword [esp + 0x10], 0
jne 0x4100e9
jmp 0x40fcb5
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.00411094
test eax, eax
jne 0x4100d7
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 0x410157
cmp dword [ebx + 0x80], 0
je 0x4101cd
cmp dword [esp + 0x10], 0
jne 0x40fcc3
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 0x410a5c
cmp dword [esp + 0xa4], 0
je 0x410a48
cmp dword [ebx + 0x20], 0
je 0x410a48
mov ebp, dword [ebx + 0x20]
mov eax, dword [ebx + 0x24]
mov dword [esp + 0x14], eax
add eax, ebp
cmp eax, 1
jbe 0x41051f
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 0x410424
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 0x410532
mov ebp, dword [ebx + 0x50]
test ebp, ebp
jne 0x4102ca
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 0x410591
xor edi, edi
cmp dword [esp + 0x28], 0
jne 0x410545
cmp dword [esp + 0x1c], edi
je 0x410823
test byte [ebx + 0xa], 2
jne 0x41081a
mov eax, dword [ebx + 0x50]
mov edx, dword [ebx + 0x28]
test eax, eax
je 0x4108f6
mov esi, dword [ebx + 0x3c]
cmp eax, ebp
jae 0x41085c
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 0x41082c
mov dword [ebx + 0x38], eax
inc word [ebx + ecx*2 + 0x8192]
cmp ebp, 0x7f
jbe 0x4109e0
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 0x410844
mov dword [ebx + 0x38], eax
mov eax, edx
and eax, 0x1ff
movzx eax, byte [eax + 0x418a00]
and esi, 0x7f
movzx ecx, byte [esi + 0x418420]
cmp edx, 0x200
cmovae eax, ecx
inc word [ebx + eax*2 + 0x83d2]
movzx eax, word [ebp + ebp + 0x41859a]
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 0x410a1b
mov edx, dword [ebx + 0x3c]
cmp edx, 0x7c00
ja 0x4109ff
cmp dword [esp + 0x10], 0
jne 0x410217
jmp 0x4101ff
inc dword [esp + 0x24]
mov edx, dword [esp + 0x24]
movzx edx, byte [edx - 1]
mov byte [ebx + ecx + 0x90], dl
cmp ecx, 0x100
ja 0x410446
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 0x410282
cmp eax, 0x101
ja 0x410290
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 0x4104bc
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 0x41051f
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 0x410480
jmp 0x410290
cmp dword [esp + 0xa4], 0
jne 0x4102be
jmp 0x410a48
and eax, 0x80000
mov edi, eax
jne 0x410b43
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 0x41057e
cmp al, byte [edx + ebp + 0x90]
jne 0x41057e
inc ebp
jmp 0x41056c
cmp ebp, 2
jbe 0x410813
mov edi, 1
jmp 0x4102f8
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.00407550
mov word [esp + 0x2c], ax
mov eax, dword [esp + 0x34]
call fcn.00407574
mov word [esp + 0x52], ax
cmp dword [esp + 0x18], ebp
jbe 0x4102f8
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x14], eax
dec dword [esp + 0x48]
je 0x4107fd
mov eax, dword [esp + 0x14]
mov ax, word [ebx + eax*2 + 0x19272]
test ax, ax
je 0x4107fd
mov edx, dword [esp + 0x30]
sub edx, eax
movzx ecx, dx
mov dword [esp + 0x20], ecx
cmp dword [esp + 0x28], ecx
jb 0x4107fd
and eax, 0x7fff
mov dword [esp + 0x14], eax
lea esi, [ebp + 0x8f]
add eax, esi
add eax, ebx
call fcn.00407550
cmp ax, word [esp + 0x2c]
je 0x4106d5
mov eax, dword [esp + 0x14]
mov ax, word [ebx + eax*2 + 0x19272]
test ax, ax
je 0x4107fd
mov edx, dword [esp + 0x30]
sub edx, eax
movzx ecx, dx
mov dword [esp + 0x20], ecx
cmp dword [esp + 0x28], ecx
jb 0x4107fd
and eax, 0x7fff
mov dword [esp + 0x14], eax
add eax, esi
add eax, ebx
call fcn.00407550
cmp word [esp + 0x2c], ax
je 0x4106d5
mov eax, dword [esp + 0x14]
mov ax, word [ebx + eax*2 + 0x19272]
test ax, ax
je 0x4107fd
mov edx, dword [esp + 0x30]
sub edx, eax
movzx ecx, dx
mov dword [esp + 0x20], ecx
cmp dword [esp + 0x28], ecx
jb 0x4107fd
and eax, 0x7fff
mov dword [esp + 0x14], eax
add eax, esi
add eax, ebx
call fcn.00407550
cmp word [esp + 0x2c], ax
jne 0x4105ee
cmp dword [esp + 0x20], 0
je 0x4107fd
mov esi, dword [esp + 0x4c]
add esi, dword [esp + 0x14]
mov eax, esi
call fcn.00407574
cmp word [esp + 0x52], ax
jne 0x4105ee
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.00407574
mov word [esp + 0x58], ax
mov dword [esp + 0x38], esi
add esi, 2
mov eax, esi
call fcn.00407574
cmp word [esp + 0x58], ax
mov edx, dword [esp + 0x5c]
jne 0x410b4a
mov eax, dword [esp + 0x3c]
lea edx, [eax + 4]
mov eax, edx
mov dword [esp + 0x5c], edx
call fcn.00407574
mov word [esp + 0x58], ax
mov eax, dword [esp + 0x38]
lea esi, [eax + 4]
mov eax, esi
call fcn.00407574
cmp word [esp + 0x58], ax
mov edx, dword [esp + 0x5c]
jne 0x410b4a
mov eax, dword [esp + 0x3c]
lea edx, [eax + 6]
mov eax, edx
mov dword [esp + 0x5c], edx
call fcn.00407574
mov word [esp + 0x58], ax
mov eax, dword [esp + 0x38]
lea esi, [eax + 6]
mov eax, esi
call fcn.00407574
cmp word [esp + 0x58], ax
mov edx, dword [esp + 0x5c]
jne 0x410b4a
mov edx, dword [esp + 0x3c]
add edx, 8
mov eax, edx
mov dword [esp + 0x58], edx
call fcn.00407574
mov word [esp + 0x3c], ax
mov esi, dword [esp + 0x38]
add esi, 8
mov eax, esi
call fcn.00407574
cmp word [esp + 0x3c], ax
mov edx, dword [esp + 0x58]
jne 0x410b4a
cmp edx, dword [esp + 0x54]
jne 0x41070b
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 0x4102f8
cmp edi, 0x1fff
ja 0x410823
jmp 0x4102f8
xor ebp, ebp
jmp 0x4102f8
cmp ebp, 5
ja 0x41030c
xor ebp, ebp
xor edi, edi
jmp 0x41030c
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 0x410349
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 0x410398
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 0x41089e
mov dword [ebx + 0x38], ecx
jmp 0x4108b1
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 + 0x418a00]
and esi, 0x7f
movzx esi, byte [esi + 0x418420]
cmp ebp, 0x200
cmovae ecx, esi
inc word [ebx + ecx*2 + 0x83d2]
movzx eax, word [eax + eax + 0x41859a]
inc word [ebx + eax*2 + 0x8192]
mov eax, dword [ebx + 0x50]
lea ebp, [eax - 1]
jmp 0x4103d1
test edi, edi
jne 0x410941
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 0x410921
mov dword [ebx + 0x38], edx
jmp 0x410934
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 0x4109f5
cmp dword [ebx + 0x14], 0
jne 0x410956
test byte [ebx + 0xa], 1
jne 0x410956
cmp ebp, 0x7f
jbe 0x4109e0
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 0x41098f
mov dword [ebx + 0x38], eax
jmp 0x4109a2
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 + 0x418a00]
and esi, 0x7f
movzx ecx, byte [esi + 0x418420]
cmp edx, 0x200
cmovae eax, ecx
inc word [ebx + eax*2 + 0x83d2]
movzx eax, word [ebp + ebp + 0x41859a]
inc word [ebx + eax*2 + 0x8192]
jmp 0x4103d8
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 0x4103d8
lea ecx, [ebx + 0x9272]
sub eax, ecx
imul eax, eax, 0x73
shr eax, 7
cmp edx, eax
jbe 0x410a1b
test byte [ebx + 0xa], 8
je 0x410414
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.00411094
test eax, eax
je 0x410414
js 0x410ace
jmp 0x410a5c
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 0x410a99
cmp dword [esp + 0x94], 0
je 0x410a99
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.0040aba4
mov dword [ebx + 0x18], eax
cmp dword [esp + 0xa4], 0
je 0x410b2a
cmp dword [ebx + 0x20], 0
jne 0x410b2a
cmp dword [ebx + 0x88], 0
jne 0x410b2a
cmp dword [ebx + 0x5c], 0
jne 0x410b2a
mov edx, dword [esp + 0xa4]
mov eax, ebx
call fcn.00411094
test eax, eax
jns 0x410ad6
mov eax, dword [ebx + 0x6c]
jmp 0x410b8e
mov eax, dword [esp + 0x40]
mov dword [ebx + 0x60], eax
cmp dword [esp + 0xa4], 3
jne 0x410b2a
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.0041158c
mov dword [ebx + 0x6c], eax
jmp 0x410b8e
test ecx, ecx
jne 0x40fc12
jmp 0x40fc1c
xor edi, edi
jmp 0x4102f8
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 0x4105ee
cmp dword [esp + 0x18], edx
mov ebp, dword [esp + 0x18]
cmova ebp, edx
jbe 0x4107f9
mov eax, dword [esp + 0x44]
add eax, ebp
add eax, ebx
call fcn.00407550
mov word [esp + 0x2c], ax
mov edi, dword [esp + 0x20]
jmp 0x4105ee
add esp, 0x7c
pop ebx
pop esi
pop edi
pop ebp
ret