Function at 0x40ffa0
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x50
mov eax, dword [0x43d00c]
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp dword [ecx + 0x24], 0
je 0x40ffd8
mov eax, dword [ecx]
lea edx, [ecx + 0xac]
lea edi, [ecx + 4]
mov dword [ebp - 0x34], edx
lea edx, [ecx + 0x18]
mov dword [ebp - 0x28], edx
jmp 0x4100e5
lea eax, [ecx + 0x18]
lea edi, [ecx + 4]
mov dword [ecx], 0
mov byte [ecx + 0x28], 0
mov dword [ecx + 4], 0
mov dword [ecx + 0x1c], 0
mov dword [ecx + 0x18], 0
mov dword [ecx + 0x4c], 0
mov dword [ecx + 0x48], 0
mov dword [ecx + 0x54], 0
mov dword [ecx + 0x50], 0
mov dword [ecx + 0x5c], 0
mov dword [ecx + 0x58], 0
mov dword [ecx + 0x64], 0
mov dword [ecx + 0x60], 0
mov dword [ecx + 0x6c], 0
mov dword [ecx + 0x68], 0
mov dword [ecx + 0x74], 0
mov dword [ecx + 0x70], 0
mov dword [ecx + 0x7c], 0
mov dword [ecx + 0x78], 0
mov dword [ecx + 0x84], 0
mov dword [ecx + 0x80], 0
mov dword [ecx + 0x8c], 0
mov dword [ecx + 0x88], 0
mov dword [ecx + 0x94], 0
mov dword [ecx + 0x90], 0
mov dword [ecx + 0x9c], 0
mov dword [ecx + 0x98], 0
mov dword [ecx + 0xa8], 0
mov dword [ecx + 0xa4], 0
mov dword [ecx + 0xa0], 0
mov dword [ecx + 0xac], 0xc
mov dword [ebp - 0x28], eax
lea eax, [ecx + 0xac]
mov dword [ebp - 0x34], eax
xor eax, eax
mov esi, dword [ebx + 4]
mov edx, dword [ebx + 0x10]
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0x4c], edx
lea edx, [ecx + 0x48]
mov dword [ebp - 0x50], esi
mov dword [ecx + 0x10], esi
lea esi, [ecx + 0xb0]
lea ecx, [ecx + 0x60]
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x3c], edx
jmp case.default.0x410125
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, 9
ja case.default.0x410125
jmp dword [eax*4 + 0x4354c4]
mov edx, dword [ebp + 8]
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
mov edi, edx
mov edx, dword [edx + 0xa8]
sub ecx, eax
mov esi, dword [edi + 0xac]
sub esi, edx
cmp ecx, esi
cmovb esi, ecx
add eax, dword [ebx]
lea ecx, [edi + edx + 0xb0]
push esi
push eax
push ecx
call fcn.00424880
add esp, 0xc
add dword [ebx + 4], esi
xor edx, edx
add esi, dword [edi + 0xa8]
cmp esi, dword [edi + 0xac]
cmove esi, edx
mov dword [edi + 0xa8], esi
jne 0x4111e7
mov edi, dword [ebp + 8]
mov ecx, 0x587a37fd
mov dword [edi], 1
mov eax, dword [edi + 0xb0]
movzx edx, word [edi + 0xb4]
xor eax, ecx
xor edx, 0x5a
or edx, eax
jne 0x41117d
movzx ecx, byte [edi + 0xb6]
mov eax, ecx
xor eax, 0xff
mov edx, dword [eax*4 + 0x43fe74]
movzx eax, byte [edi + 0xb7]
movzx esi, dl
shr edx, 8
xor esi, eax
xor esi, 0xff
xor edx, dword [esi*4 + 0x43fe74]
xor edx, 0xffff0000
cmp dword [edi + 0xb8], edx
jne 0x41110a
mov edx, 6
test cl, cl
jne 0x4111e7
cmp al, 4
mov dword [edi + 0x20], eax
ja 0x4111e7
mov edi, dword [ebp - 0x2c]
movzx eax, al
mov ecx, 0x13
bt ecx, eax
jae 0x4111e7
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
je 0x411114
mov ecx, dword [ebx]
movzx ecx, byte [ecx + eax]
test ecx, ecx
je 0x41041e
mov edi, dword [ebp + 8]
lea eax, [ecx*4 + 4]
xor edx, edx
mov ecx, edi
mov edi, eax
mov dword [ecx + 0x40], eax
mov dword [ecx + 0xac], eax
mov eax, dword [ebp - 0x48]
mov dword [ecx + 0xa8], 0
mov dword [ecx], 2
jmp 0x410277
mov edi, dword [ebp + 8]
mov edx, dword [edi + 0xa8]
mov eax, edi
mov edi, dword [edi + 0xac]
lea eax, [eax + edx + 0xb0]
mov ecx, dword [ebx + 8]
mov esi, dword [ebx + 4]
mov dword [ebp - 0x20], edi
sub edi, edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x24], ecx
sub ecx, esi
cmp ecx, edi
cmovb edi, ecx
mov ecx, dword [ebx]
add ecx, esi
push edi
push ecx
push eax
call fcn.00424880
add esp, 0xc
mov eax, dword [ebp + 8]
add dword [ebx + 4], edi
xor edx, edx
mov ecx, dword [eax + 0xa8]
add edi, ecx
mov dword [ebp - 0x30], ecx
cmp edi, dword [eax + 0xac]
mov ecx, edi
cmove ecx, edx
mov dword [eax + 0xa8], ecx
jne 0x4111e7
mov ecx, dword [ebp - 0x34]
add edi, 0xfffffffc
mov dword [ebp - 0x1c], edi
mov dword [ecx], edi
je 0x41032d
mov ecx, dword [ebp - 0x18]
dec esi
mov eax, 0xffffffff
sub esi, dword [ebp - 0x24]
dec ecx
sub ecx, dword [ebp - 0x20]
cmp ecx, esi
cmova esi, ecx
mov ecx, dword [ebp - 0x48]
add esi, 5
sub esi, dword [ebp - 0x30]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [ecx]
movzx edi, al
shr eax, 8
inc ecx
xor edi, edx
xor eax, dword [edi*4 + 0x43fe74]
inc esi
jne 0x410300
jmp 0x410332
mov esi, dword [ebp - 0x3c]
mov edi, dword [ebp + 8]
mov eax, dword [esi]
test al, 3
jne 0x410ba0
jmp 0x410bcd
mov eax, 0xffffffff
mov edi, dword [ebp + 8]
mov esi, dword [ebp - 0x1c]
not eax
mov edx, 7
cmp dword [edi + esi + 0xb0], eax
jne 0x4111e7
mov dword [edi + 0xa8], 2
movzx eax, byte [edi + 0xb1]
test al, 0x3e
jne 0x410eb0
test al, 0x40
mov dword [ebp - 0x24], eax
jne 0x410389
mov dword [ebp - 0x30], 0xffffffff
mov dword [ebp - 0x20], 2
mov edi, 0xffffffff
mov ebx, 0xffffffff
jmp 0x410453
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], 0xffffffff
mov ecx, dword [eax]
test ecx, ecx
jne 0x4103a7
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
mov esi, 0xb2
nop
nop
nop
nop
lea edx, [esi - 0xb0]
cmp edx, dword [ebp - 0x1c]
jae 0x41110a
mov dh, byte [edi + esi]
lea eax, [esi - 0xaf]
xor ebx, ebx
mov dword [ebp - 0x20], eax
mov dword [edi + 0xa8], eax
mov eax, edi
mov byte [ebp - 0x18], dh
and dh, 0x7f
movzx edi, dh
mov edx, 0
shld ebx, edi, cl
shl edi, cl
test cl, 0x20
cmovne ebx, edi
cmovne edi, edx
or ebx, dword [eax + 0xc]
or edi, dword [eax + 8]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], edi
movzx eax, byte [ebp - 0x18]
test al, al
jns 0x410436
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
add ecx, 7
inc esi
cmp ecx, 0x3f
mov dword [eax], ecx
jne 0x4103b0
jmp 0x41110a
mov edx, dword [ebp + 8]
lea ecx, [eax + 1]
mov dword [ebx + 4], ecx
mov dword [edx + 0x10], eax
mov eax, 6
mov dword [edx], eax
jmp case.default.0x410125
test ecx, ecx
mov edx, 7
je 0x410447
test al, al
je 0x411264
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x1c]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
cmp byte [ebp - 0x24], 0
mov eax, ecx
mov dword [ecx + 0x30], edi
mov dword [ecx + 0x34], ebx
js 0x410622
mov ebx, dword [ebp + 0xc]
mov edi, 0xffffffff
mov ecx, dword [ebp + 8]
mov eax, ecx
mov ecx, dword [ebp - 0x30]
mov dword [eax + 0x3c], edi
mov dword [eax + 0x38], ecx
mov ecx, eax
mov eax, dword [ebp - 0x24]
and al, 1
mov byte [ecx + 0x4b8], al
je 0x410506
mov eax, dword [ebp - 0x20]
sub esi, eax
cmp esi, 2
jb 0x410eb0
mov edx, eax
inc eax
mov dword [ecx + 0xa8], eax
cmp byte [ecx + edx + 0xb0], 4
jne 0x410eb0
mov eax, dword [ecx + 0x4b4]
mov dword [eax], 4
mov dword [eax + 4], 0
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x20], 0
mov dword [eax + 0x24], 0
mov eax, dword [ecx + 0xa8]
lea edx, [eax + 1]
mov dword [ecx + 0xa8], edx
mov dword [ebp - 0x20], edx
cmp byte [ecx + eax + 0xb0], 0
jne 0x410eb0
mov eax, dword [ebp - 0x34]
mov esi, dword [eax]
mov edi, dword [ebp - 0x20]
mov eax, esi
mov edx, 7
sub eax, edi
cmp eax, 2
jb 0x4111e7
lea eax, [edi + 1]
mov dword [ecx + 0xa8], eax
cmp byte [ecx + edi + 0xb0], 0x21
jne 0x410eb0
lea eax, [edi + 2]
mov dword [ecx + 0xa8], eax
cmp byte [ecx + edi + 0xb1], 1
jne 0x410eb0
cmp esi, eax
je 0x4111e7
mov ecx, dword [ebp - 0x20]
mov edi, dword [ebp + 8]
lea eax, [ecx + 3]
mov dword [edi + 0xa8], eax
movzx ecx, byte [edi + ecx + 0xb2]
cmp ecx, 0x27
ja 0x410eb0
mov eax, ecx
mov esi, dword [edi + 0x4b0]
shr ecx, 1
and eax, 1
add ecx, 0xb
or eax, 2
shl eax, cl
mov dword [esi + 0x30], eax
mov ecx, dword [esi + 0x3c]
test ecx, ecx
je 0x4105c7
cmp eax, dword [esi + 0x34]
ja 0x411184
cmp ecx, 2
mov dword [esi + 0x2c], eax
jne 0x4105c7
cmp dword [esi + 0x38], eax
jae 0x4105c7
push dword [esi + 0x18]
call fcn.0041f205
add esp, 4
push dword [esi + 0x30]
call fcn.0041f68f
add esp, 4
test eax, eax
mov dword [esi + 0x18], eax
je 0x41126c
mov dword [esi + 0x68], 0
mov dword [esi + 0x40], 0
mov byte [esi + 0x50], 1
mov dword [esi + 0x6ee4], 0
mov esi, dword [ebp - 0x3c]
mov ecx, dword [edi + 0xa8]
mov eax, dword [edi + 0xac]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp ecx, eax
jae 0x4106ca
lea edx, [ecx + 1]
mov dword [edi + 0xa8], edx
cmp byte [edi + ecx + 0xb0], 0
mov ecx, edx
je 0x410600
jmp 0x410eb0
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp + 0xc]
mov edi, ecx
mov esi, dword [eax]
test esi, esi
jne 0x41063e
mov dword [edi + 0xc], 0
mov dword [edi + 8], 0
mov eax, dword [ebp - 0x20]
add esi, 7
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, dword [ebp - 0x1c]
jae 0x4111e7
movzx edx, byte [edi + eax + 0xb0]
mov ebx, eax
lea ecx, [esi - 7]
mov dword [ebp - 0x20], ebx
mov eax, edx
mov byte [ebp - 0x18], dl
and al, 0x7f
movzx edx, al
mov eax, edi
xor edi, edi
shld edi, edx, cl
shl edx, cl
test cl, 0x20
lea ecx, [ebx + 1]
mov ebx, 0
cmovne edi, edx
mov dword [eax + 0xa8], ecx
cmovne edx, ebx
or edi, dword [eax + 0xc]
or edx, dword [eax + 8]
mov dword [eax + 0xc], edi
mov dword [eax + 8], edx
movzx eax, byte [ebp - 0x18]
test al, al
jns 0x41090b
mov eax, dword [ebp - 0x2c]
mov edi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edx, 7
mov dword [eax], esi
add esi, 7
mov eax, ecx
cmp esi, 0x46
jne 0x410650
jmp 0x4111e7
mov dword [edi + 0xa8], 0
mov dword [esi + 4], 0
mov dword [esi], 0
mov dword [esi + 0xc], 0
mov dword [esi + 8], 0
mov dword [edi], 3
mov eax, dword [ebx + 4]
mov esi, dword [ebp + 8]
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x10]
mov dword [esi + 0x14], eax
cmp byte [esi + 0x4b8], 0
mov ecx, dword [esi + 0x4b0]
je 0x410790
mov edx, dword [esi + 0x4b4]
mov dword [ebp - 0x18], ecx
mov eax, dword [edx + 0x20]
test eax, eax
je 0x41079c
mov ecx, dword [ebx + 0x10]
mov esi, dword [ebx + 0x14]
mov edi, ebx
sub esi, ecx
cmp eax, esi
cmovb esi, eax
add ecx, dword [ebx + 0xc]
lea eax, [edx + 0x28]
mov dword [ebp - 0x1c], eax
push esi
push eax
push ecx
mov ebx, edx
call fcn.00424880
add esp, 0xc
add dword [edi + 0x10], esi
lea eax, [ebx + esi + 0x28]
mov edi, dword [ebx + 0x24]
sub edi, esi
sub dword [ebx + 0x20], esi
mov dword [ebx + 0x24], edi
setne byte [ebp - 0x20]
push edi
push eax
push dword [ebp - 0x1c]
call fcn.0042a1a0
add esp, 0xc
xor eax, eax
cmp byte [ebp - 0x20], 0
jne 0x41098d
cmp dword [ebx + 4], 1
mov eax, 1
je 0x41098d
mov eax, ebx
lea ecx, [ebx + 0x24]
mov dword [ebp - 0x1c], ecx
jmp 0x4107a7
mov edx, ebx
call fcn.0040f650
jmp 0x410993
mov edi, dword [edx + 0x24]
lea eax, [edx + 0x24]
mov dword [ebp - 0x1c], eax
mov eax, edx
mov ebx, dword [ebp + 0xc]
test edi, edi
mov esi, ebx
mov ebx, dword [ebx + 0x10]
je 0x410858
mov ecx, dword [esi + 0x14]
mov edx, ecx
sub edx, ebx
cmp edi, edx
jb 0x410858
mov edx, eax
cmp ebx, ecx
mov dword [ebp - 0x24], edx
jae 0x410932
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x18]
mov eax, dword [esi + 0xc]
lea ebx, [edi + 0x28]
mov edx, esi
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x18], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 0x1c], eax
mov dword [esi + 0xc], ebx
mov eax, dword [edi + 0x24]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0x10
call fcn.0040f650
mov dword [edi + 4], eax
mov eax, dword [esi + 0x10]
mov dword [edi + 0x24], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0xc], eax
mov eax, dword [edi + 0x18]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x14], eax
mov eax, dword [edi + 4]
cmp eax, 1
ja 0x41098d
lea esi, [edi + 0x20]
mov ecx, edi
mov edx, ebx
push dword [edi + 0x24]
push esi
call fcn.0040fdd0
add esp, 8
cmp dword [edi + 4], 1
jne 0x41093c
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
mov dword [esi], eax
jmp 0x41093e
mov dword [ebp - 0x14], ebx
add ebx, dword [esi + 0xc]
mov esi, eax
lea eax, [eax + 0x28]
push edi
mov dword [ebp - 0x20], eax
push eax
push ebx
call fcn.00424880
add esp, 0xc
mov eax, dword [esi + 0x24]
mov edx, dword [ebp + 0xc]
add dword [edx + 0x10], eax
mov ecx, dword [ebp - 0x18]
call fcn.0040f650
cmp eax, 1
mov dword [esi + 4], eax
je 0x41089e
test eax, eax
jne 0x41098d
xor eax, eax
cmp byte [esi + 8], 0
jne 0x41098d
mov eax, dword [ebp + 0xc]
mov ecx, esi
mov edx, dword [eax + 0xc]
push dword [eax + 0x10]
lea eax, [ebp - 0x14]
push eax
call fcn.0040fdd0
add esp, 8
cmp dword [esi + 4], 1
mov eax, 1
je 0x41098d
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], esi
mov edx, dword [ebp - 0x1c]
mov esi, eax
mov eax, dword [eax + 0x10]
sub eax, dword [ebp - 0x14]
mov dword [edx], eax
mov ecx, dword [esi + 0x10]
sub ecx, eax
mov dword [esi + 0x10], ecx
add ecx, dword [esi + 0xc]
mov edi, dword [edx]
push edi
push ecx
push dword [ebp - 0x20]
call fcn.00424880
add esp, 0xc
mov ebx, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov edx, dword [ebp - 0x24]
xor eax, eax
add edi, ebx
cmp edi, ecx
jae 0x4107c8
jmp 0x41098d
mov ebx, dword [ebp + 0xc]
cmp esi, 7
mov dword [ebp - 0x30], edx
je 0x41091e
test al, al
je 0x41110a
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x1c]
inc dword [ebp - 0x20]
mov dword [eax], 0
jmp 0x410470
mov ebx, dword [ebp - 0x24]
add ebx, 4
mov eax, dword [ebx]
jmp 0x41098d
mov eax, dword [esi]
mov ecx, dword [ebp + 0xc]
mov edi, ecx
mov ecx, dword [ecx + 0x10]
mov esi, dword [edi + 0x14]
sub esi, ecx
cmp eax, esi
cmovb esi, eax
add ecx, dword [edi + 0xc]
push esi
push ebx
push ecx
call fcn.00424880
add esp, 0xc
add dword [edi + 0x10], esi
mov edx, ebx
mov edi, dword [ebp - 0x24]
mov eax, dword [edi + 0x24]
lea ecx, [edi + esi + 0x28]
sub eax, esi
sub dword [edi + 0x20], esi
mov dword [edi + 0x24], eax
setne bl
push eax
push ecx
push edx
call fcn.0042a1a0
add esp, 0xc
xor eax, eax
test bl, bl
je 0x410cc3
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebx + 4]
mov eax, dword [esi + 0x4c]
sub ecx, dword [esi + 0x10]
add ecx, dword [esi + 0x48]
adc eax, 0
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], eax
mov dword [ebp - 0x1c], eax
mov edi, dword [ebx + 0x10]
mov ebx, dword [esi + 0x14]
mov edx, dword [esi + 0x54]
mov eax, dword [esi + 0x30]
sub edi, ebx
mov dword [ebp - 0x5c], eax
add edi, dword [esi + 0x50]
adc edx, 0
mov dword [esi + 0x50], edi
cmp eax, ecx
mov dword [esi + 0x54], edx
mov eax, dword [esi + 0x34]
mov dword [ebp - 0x58], eax
sbb eax, dword [ebp - 0x1c]
jb 0x41111b
mov eax, dword [esi + 0x38]
mov dword [ebp - 0x38], edi
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x3c]
cmp dword [ebp - 0x24], edi
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
sbb eax, edx
jb 0x41111b
mov eax, dword [esi + 0x20]
mov edi, edx
mov dword [ebp - 0x40], ecx
mov dword [ebp - 0x30], edx
cmp eax, 4
mov dword [ebp - 0x54], eax
je 0x410a4c
mov edx, dword [ebp - 0x18]
cmp eax, 1
jne 0x410aa3
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 0xc]
mov eax, dword [eax]
mov edi, dword [ecx + 0x10]
not eax
cmp edi, ebx
je 0x410a46
mov esi, dword [ecx + 0xc]
add esi, ebx
sub ebx, edi
movzx edi, byte [esi]
movzx ecx, al
shr eax, 8
inc esi
xor ecx, edi
xor eax, dword [ecx*4 + 0x43fe74]
inc ebx
jne 0x410a30
not eax
xor esi, esi
jmp 0x410a98
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx]
mov esi, dword [ecx + 4]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx + 0x10]
not esi
not eax
cmp edx, ebx
je 0x410a91
mov edi, dword [ecx + 0xc]
add edi, ebx
sub ebx, edx
nop
nop
nop
nop
nop
nop
nop
movzx ecx, byte [edi]
movzx edx, al
shrd eax, esi, 8
shr esi, 8
inc edi
xor edx, ecx
xor eax, dword [edx*8 + 0x440278]
xor esi, dword [edx*8 + 0x44027c]
inc ebx
jne 0x410a70
mov edx, dword [ebp - 0x18]
not eax
not esi
mov ecx, dword [ebp - 0x28]
mov dword [ecx], eax
mov dword [ecx + 4], esi
mov ecx, dword [ebp - 0x40]
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x24]
cmp edx, 1
jne 0x4111e7
mov edx, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x58]
mov eax, edx
and eax, edi
cmp eax, 0xffffffff
je 0x410ace
xor edi, dword [ebp - 0x1c]
xor edx, ecx
or edi, edx
jne 0x41110a
mov eax, esi
mov edx, dword [ebp - 0x30]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x410af0
mov eax, dword [ebp - 0x20]
xor esi, dword [ebp - 0x38]
xor eax, edx
mov edx, 7
or eax, esi
jne 0x4111e7
mov edi, dword [ebp + 8]
mov edx, dword [ebp - 0x1c]
mov eax, dword [edi + 0x40]
add eax, ecx
mov ecx, dword [ebp - 0x54]
adc edx, 0
add eax, dword [edi + 0x60]
adc edx, dword [edi + 0x64]
xor esi, esi
cmp ecx, 1
mov dword [edi + 0x60], eax
mov dword [edi + 0x64], edx
je 0x410b20
cmp ecx, 4
jne 0x410b34
mov edi, 8
jmp 0x410b25
mov edi, 4
add eax, edi
mov ecx, dword [ebp - 0x44]
mov edi, dword [ebp + 8]
adc edx, esi
mov dword [ecx], eax
mov dword [ecx + 4], edx
mov ecx, dword [ebp - 0x38]
add dword [edi + 0x68], ecx
mov ecx, dword [ebp - 0x30]
adc dword [edi + 0x6c], ecx
mov ecx, dword [edi + 0x70]
not ecx
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x43fe74]
mov eax, 0xffffffe9
nop
nop
nop
nop
nop
nop
nop
movzx edx, byte [edi + eax + 0x78]
movzx esi, cl
shr ecx, 8
xor esi, edx
xor ecx, dword [esi*4 + 0x43fe74]
inc eax
jne 0x410b60
not ecx
mov dword [edi + 0x70], ecx
add dword [edi + 0x58], 1
adc dword [edi + 0x5c], 0
mov dword [edi], 4
mov esi, dword [ebp - 0x3c]
mov eax, dword [ebp - 0x40]
test al, 3
je 0x410bcd
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
je 0x411114
mov ecx, dword [ebx]
lea edx, [eax + 1]
mov dword [ebx + 4], edx
cmp byte [ecx + eax], 0
jne 0x41110a
mov eax, dword [esi]
add eax, 1
adc dword [esi + 4], 0
mov dword [esi], eax
test al, 3
jne 0x410ba0
mov dword [edi], 5
mov edi, dword [ebp - 0x2c]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x20]
mov eax, 1
cmp ecx, 1
je 0x410c50
cmp ecx, 4
jne 0x41010e
nop
mov edx, dword [ebx + 4]
cmp edx, dword [ebx + 8]
je 0x411114
mov ecx, dword [ebp - 0x28]
mov ebx, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x18], ecx
movzx ecx, byte [edi]
mov esi, dword [ebp - 0x18]
shr esi, cl
mov dword [ebp - 0x1c], esi
mov esi, dword [ebp - 0x18]
shrd ebx, esi, cl
test cl, 0x20
mov ecx, dword [ebp + 0xc]
cmovne ebx, dword [ebp - 0x1c]
mov esi, dword [ecx]
mov dword [ebp - 0x18], esi
lea esi, [edx + 1]
mov dword [ecx + 4], esi
mov esi, dword [ebp - 0x18]
cmp byte [esi + edx], bl
jne 0x41111b
mov ecx, dword [edi]
mov ebx, dword [ebp + 0xc]
add ecx, 8
cmp ecx, 0x40
mov dword [edi], ecx
jb 0x410bf0
jmp 0x410ca8
mov edx, dword [ebx + 4]
cmp edx, dword [ebx + 8]
je 0x411114
mov ecx, dword [ebp - 0x28]
mov ebx, dword [ecx]
mov ecx, dword [ecx + 4]
mov dword [ebp - 0x18], ecx
movzx ecx, byte [edi]
mov esi, dword [ebp - 0x18]
shr esi, cl
mov dword [ebp - 0x1c], esi
mov esi, dword [ebp - 0x18]
shrd ebx, esi, cl
test cl, 0x20
mov ecx, dword [ebp + 0xc]
cmovne ebx, dword [ebp - 0x1c]
mov esi, dword [ecx]
mov dword [ebp - 0x18], esi
lea esi, [edx + 1]
mov dword [ecx + 4], esi
mov esi, dword [ebp - 0x18]
cmp byte [esi + edx], bl
jne 0x41111b
mov ecx, dword [edi]
mov ebx, dword [ebp + 0xc]
add ecx, 8
cmp ecx, 0x20
mov dword [edi], ecx
jb 0x410c50
mov ecx, dword [ebp - 0x28]
mov dword [ecx + 4], 0
mov dword [ecx], 0
mov dword [edi], 0
jmp 0x41010e
add edi, 4
mov ebx, edi
jmp 0x410938
mov eax, dword [ebp + 8]
cmp dword [eax + 4], 0
sete cl
mov eax, dword [ebx]
mov edx, dword [ebx + 8]
test cl, 1
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], edx
je 0x410d00
mov eax, dword [ebp + 8]
mov dword [eax + 0xc], 0
mov dword [eax + 8], 0
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [ebx + 4]
cmp ecx, dword [ebp - 0x18]
jae 0x410eba
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp + 8]
mov edi, 0
movzx eax, byte [eax + ecx]
inc ecx
mov dword [ebx + 4], ecx
xor ebx, ebx
mov ecx, eax
and cl, 0x7f
movzx edx, cl
mov ecx, dword [esi + 4]
shld ebx, edx, cl
shl edx, cl
test cl, 0x20
cmovne ebx, edx
cmovne edx, edi
or ebx, dword [esi + 0xc]
or edx, dword [esi + 8]
test al, al
mov dword [esi + 0xc], ebx
mov dword [esi + 8], edx
jns 0x410d5f
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp + 0xc]
add ecx, 7
cmp ecx, 0x3f
mov dword [eax], ecx
jne 0x410d00
jmp 0x41118e
jne 0x410d69
test ecx, ecx
jne 0x41118b
mov edi, dword [ebp + 8]
mov dword [edi + 4], 0
mov ecx, dword [edi + 0x78]
cmp ecx, 2
je 0x410db6
cmp ecx, 1
je 0x410e19
test ecx, ecx
jne 0x410e2c
mov dword [edi + 0x88], edx
mov dword [edi + 0x8c], ebx
mov eax, dword [edi + 0x58]
mov ecx, dword [edi + 0x5c]
xor eax, edx
xor ecx, ebx
or ecx, eax
jne 0x41111b
mov dword [edi + 0x78], 1
jmp 0x410e38
add dword [edi + 0x98], edx
mov edx, 0xffffffe8
adc dword [edi + 0x9c], ebx
mov ecx, dword [edi + 0xa0]
not ecx
nop
movzx eax, byte [edi + edx + 0xa8]
movzx esi, cl
shr ecx, 8
xor esi, eax
xor ecx, dword [esi*4 + 0x43fe74]
inc edx
jne 0x410dd0
not ecx
mov dword [edi + 0xa0], ecx
mov edx, dword [edi + 0x88]
mov ebx, dword [edi + 0x8c]
add edx, 0xffffffff
adc ebx, 0xffffffff
mov dword [edi + 0x88], edx
mov dword [edi + 0x8c], ebx
mov dword [edi + 0x78], 1
jmp 0x410e38
add dword [edi + 0x90], edx
adc dword [edi + 0x94], ebx
mov dword [edi + 0x78], 2
mov edx, dword [edi + 0x88]
mov ebx, dword [edi + 0x8c]
or edx, ebx
mov ebx, dword [ebp + 0xc]
mov cl, 1
jne 0x410cd7
mov dword [edi], 7
mov eax, dword [ebx + 4]
mov edi, dword [ebp + 8]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov ecx, dword [edi + 0x10]
mov ebx, eax
mov edx, dword [edi + 0x84]
sub ebx, ecx
add ebx, dword [edi + 0x80]
adc edx, 0
test bl, 3
je 0x410ec6
mov esi, dword [ebp + 0xc]
cmp eax, dword [esi + 8]
je 0x411128
mov ecx, dword [esi]
lea edx, [eax + 1]
mov dword [esi + 4], edx
cmp byte [ecx + eax], 0
mov eax, edx
je 0x410e60
mov ebx, esi
mov edx, 7
jmp 0x4111e7
mov eax, dword [ebp - 0x34]
mov edi, dword [ebp + 8]
mov esi, dword [eax]
jmp 0x410fb1
mov edx, 6
jmp 0x4111e7
mov dword [ebp - 0x18], 0
jmp 0x411195
mov dword [edi + 0x80], ebx
mov dword [edi + 0x84], edx
cmp eax, ecx
mov edx, dword [edi + 0x18]
not edx
je 0x410ef8
mov esi, dword [ebp + 0xc]
mov esi, dword [esi]
movzx edi, byte [esi + ecx]
movzx ebx, dl
shr edx, 8
inc ecx
xor ebx, edi
xor edx, dword [ebx*4 + 0x43fe74]
cmp eax, ecx
jne 0x410ee0
mov eax, dword [ebp + 8]
not edx
mov dword [eax + 0x18], edx
mov dword [eax + 0x1c], 0
lea eax, [eax + 0x90]
push 0x18
push eax
push dword [ebp - 0x44]
call fcn.00413fc7
add esp, 0xc
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp - 0x2c]
mov edx, 7
test eax, eax
jne 0x4111e7
mov eax, dword [ebp + 8]
mov dword [eax], 8
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, dword [ebx + 4]
cmp eax, dword [ebx + 8]
je 0x411114
mov ecx, dword [ebp - 0x28]
mov ebx, dword [ecx + 4]
mov edx, dword [ecx]
movzx ecx, byte [edi]
mov esi, ebx
shrd edx, ebx, cl
mov ebx, dword [ebp + 0xc]
shr esi, cl
test cl, 0x20
cmovne edx, esi
lea esi, [eax + 1]
mov ecx, dword [ebx]
mov dword [ebx + 4], esi
cmp byte [ecx + eax], dl
jne 0x41110a
mov eax, dword [edi]
add eax, 8
cmp eax, 0x20
mov dword [edi], eax
jb case.0x410125.8
mov edi, dword [ebp + 8]
mov esi, 0xc
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi + 0xac], 0xc
mov dword [edi], 9
mov edx, dword [edi + 0xa8]
mov eax, dword [ebx + 4]
mov ecx, dword [ebx + 8]
sub ecx, eax
sub esi, edx
cmp ecx, esi
cmovb esi, ecx
add eax, dword [ebx]
lea ecx, [edi + edx + 0xb0]
push esi
push eax
push ecx
call fcn.00424880
add esp, 0xc
add dword [ebx + 4], esi
xor edx, edx
add esi, dword [edi + 0xa8]
cmp esi, dword [edi + 0xac]
cmove esi, edx
mov dword [edi + 0xa8], esi
jne 0x4111e7
mov edi, dword [ebp + 8]
mov edx, 7
movzx eax, word [edi + 0xba]
cmp eax, 0x5a59
jne 0x4111e7
movzx eax, byte [edi + 0xb4]
mov ebx, 0xffffff
movzx ecx, byte [edi + 0xb5]
movzx edx, byte [edi + 0xb6]
movzx esi, byte [edi + 0xb7]
mov dword [ebp - 0x2c], eax
xor eax, 0xff
mov dword [ebp - 0x28], ecx
xor ebx, dword [eax*4 + 0x43fe74]
movzx eax, bl
shr ebx, 8
xor eax, ecx
xor ebx, dword [eax*4 + 0x43fe74]
movzx eax, bl
shr ebx, 8
xor eax, edx
xor ebx, dword [eax*4 + 0x43fe74]
movzx eax, bl
shr ebx, 8
xor eax, esi
xor ebx, dword [eax*4 + 0x43fe74]
movzx eax, byte [edi + 0xb8]
movzx edi, bl
shr ebx, 8
xor edi, eax
xor ebx, dword [edi*4 + 0x43fe74]
mov edi, dword [ebp + 8]
movzx ecx, byte [edi + 0xb9]
movzx edi, bl
shr ebx, 8
xor edi, ecx
mov dword [ebp - 0x18], ecx
xor ebx, dword [edi*4 + 0x43fe74]
mov edi, dword [ebp + 8]
not ebx
cmp dword [edi + 0xb0], ebx
jne 0x41111b
mov ebx, dword [ebp + 0xc]
test al, al
jne 0x41110a
mov eax, dword [ebp - 0x28]
shl edx, 0x10
mov ecx, dword [edi + 0x84]
shl esi, 0x18
shl eax, 8
add eax, dword [ebp - 0x2c]
or edx, eax
mov eax, dword [edi + 0x80]
or esi, edx
mov edx, 7
shrd eax, ecx, 2
shr ecx, 2
xor esi, eax
or esi, ecx
jne 0x4111e7
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x18]
mov edx, 7
cmp dword [eax + 0x20], ecx
mov eax, 1
cmove edx, eax
jmp 0x4111e7
mov edx, 7
jmp 0x4111e7
xor edx, edx
jmp 0x4111e7
mov ebx, dword [ebp + 0xc]
mov edx, 7
jmp 0x4111e7
mov dword [edi + 0x80], ebx
mov dword [edi + 0x84], edx
cmp eax, ecx
mov edx, dword [edi + 0x18]
not edx
je 0x411168
mov esi, dword [ebp + 0xc]
mov esi, dword [esi]
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
movzx edi, byte [esi + ecx]
movzx ebx, dl
shr edx, 8
inc ecx
xor ebx, edi
xor edx, dword [ebx*4 + 0x43fe74]
cmp eax, ecx
jne 0x411150
mov eax, dword [ebp - 0x28]
mov ebx, dword [ebp + 0xc]
not edx
mov dword [eax], edx
mov dword [eax + 4], 0
xor edx, edx
jmp 0x4111e7
mov edx, 5
jmp 0x4111e7
mov edx, 4
jmp 0x4111e7
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x18], 7
mov edi, dword [ebp + 8]
mov esi, dword [ebx + 4]
mov ecx, dword [edi + 0x10]
mov edx, esi
mov eax, dword [edi + 0x18]
sub edx, ecx
not eax
add dword [edi + 0x80], edx
adc dword [edi + 0x84], 0
test edx, edx
je 0x4111d6
mov edx, dword [ebx]
add edx, ecx
sub ecx, esi
nop
nop
movzx esi, byte [edx]
movzx edi, al
shr eax, 8
inc edx
xor edi, esi
xor eax, dword [edi*4 + 0x43fe74]
inc ecx
jne 0x4111c0
mov ecx, dword [ebp - 0x28]
mov edx, dword [ebp - 0x18]
not eax
mov dword [ecx], eax
mov dword [ecx + 4], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x24], 0
je 0x41121c
test edx, edx
jne 0x411216
mov ecx, dword [ebp - 0x50]
cmp ecx, dword [ebx + 4]
jne 0x411216
mov ecx, dword [ebp - 0x4c]
cmp ecx, dword [ebx + 0x10]
jne 0x411216
xor edx, edx
cmp byte [eax + 0x28], 0
mov byte [eax + 0x28], 1
setne dl
shl edx, 3
jmp 0x41124e
mov byte [eax + 0x28], 0
jmp 0x41124e
test edx, edx
je 0x41122e
cmp edx, 1
mov eax, edx
mov edx, 1
jne 0x411240
jmp 0x41124e
mov eax, dword [ebx + 4]
xor ecx, ecx
cmp eax, dword [ebx + 8]
mov eax, 8
sete cl
sub eax, ecx
mov ecx, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
mov dword [ebx + 4], ecx
mov dword [ebx + 0x10], edx
mov edx, eax
mov ecx, dword [ebp - 0x10]
mov esi, edx
xor ecx, ebp
call fcn.00412bfe
mov eax, esi
add esp, 0x50
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [ebp + 0xc]
jmp 0x4111e7
mov dword [esi + 0x38], 0
mov edx, 3
jmp 0x4111e7