Function at 0x59c340
Capabilities:
Encrypt data using speck
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x6c
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x30], eax
mov edi, dword [ebp + 8]
mov eax, dword [0x808040]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ecx, ecx
je 0x59c37a
mov eax, dword [edi + 0x114]
mov dword [ecx], eax
cmp dword [edi + 0x5c], 0
js 0x59d132
mov eax, dword [ebp - 0x3c]
cmp dword [eax], 0
je 0x59d139
test edx, edx
je 0x59d2f9
cmp dword [edx], 0
je 0x59d2f9
cmp dword [edi + 0x30], 0
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], edx
jne 0x59d1f2
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
xor ebx, ebx
inc ebx
lea ecx, [edi + 8]
mov dword [ebp - 0x28], ecx
mov dword [edi + 0x10], eax
lea eax, [edi + 0xcc]
mov dword [ebp - 0x48], eax
lea eax, [edi + 0x240]
mov dword [ebp - 0x58], eax
lea eax, [edi + 0x23c]
mov dword [ebp - 0x74], eax
lea eax, [edi + 0x250]
mov dword [ebp - 0x54], eax
lea eax, [edi + 0xfc]
mov dword [ebp - 0x70], eax
lea eax, [edi + 0xf8]
mov dword [ebp - 0x6c], eax
lea eax, [edi + 0x78]
mov dword [ebp - 0x64], eax
lea eax, [edi + 0x88]
mov dword [ebp - 0x60], eax
lea eax, [edi + 0x98]
mov dword [ebp - 0x5c], eax
lea eax, [edi + 0x338]
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x1c], edi
jmp case.default.0x59cb11
mov dword [edi], 0x19
mov eax, dword [edi + 0xdc]
mov ecx, eax
shl ecx, 6
mov edx, dword [edi + 0x240]
lea esi, [edx + ecx]
mov dword [edi + 0x70], esi
mov esi, eax
shr esi, 5
mov esi, dword [edi + esi*4 + 0x250]
xor ebx, ebx
bt esi, eax
setb bl
mov dword [edi + 0xb0], ebx
movzx ecx, byte [edx + ecx]
mov edx, dword [edi + 0x78]
mov ecx, dword [edx + ecx*4]
mov edx, dword [edi + 0x88]
mov dword [edi + 0x100], ecx
mov ecx, dword [edi + 0x244]
movzx eax, byte [ecx + eax]
and eax, 3
shl eax, 9
lea eax, [eax + 0x7a366a]
mov dword [edi + 0x6c], eax
mov eax, dword [edi + 0xfc]
mov dword [edi + 0x74], eax
mov eax, dword [edx]
mov dword [edi + 0x68], eax
mov ecx, edi
call fcn.00513090
mov ebx, 0xffffffe5
test eax, eax
je case.default.0x59cb11
mov edx, dword [edi + 0xf0]
mov ebx, dword [edi + 0xf4]
movzx eax, word [edi + 0xa2]
mov dword [ebp - 0x4c], eax
test ebx, ebx
je 0x59cf15
xor esi, esi
mov eax, esi
mov byte [edi + esi + 0x280], 0
inc esi
mov dword [edi + eax*4 + 0x4d0], esi
cmp ebx, esi
jne 0x59c4d1
add esi, 0x10
cmp esi, dword [ebp - 0x4c]
jae 0x59c55f
xor edi, edi
xor eax, eax
inc eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x50], edi
lea eax, [edi + 2]
mov ecx, dword [ebp - 0x20]
shl eax, cl
add eax, 0xfffffffc
mov ecx, edx
shl eax, cl
add eax, ebx
mov dword [ebp - 0x38], eax
xor eax, eax
inc eax
mov ecx, edx
mov dword [ebp - 0x24], esi
mov ebx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov byte [edx + esi + 0x270], bl
mov edx, dword [ebp - 0x38]
lea esi, [edx + eax]
mov dword [ebp - 0x2c], esi
mov ebx, eax
shr ebx, cl
mov esi, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x24]
mov dword [edx + edi*4 + 0x490], esi
mov esi, dword [ebp - 0x24]
inc esi
inc eax
test ebx, ebx
je 0x59c516
mov edi, dword [ebp - 0x50]
add dword [ebp - 0x20], edi
xor edi, 1
cmp esi, dword [ebp - 0x4c]
mov edx, ecx
mov ebx, dword [ebp - 0x78]
jb 0x59c4fa
mov edi, dword [ebp - 0x1c]
mov dword [edi], 7
mov ecx, edi
call fcn.0059e460
mov ebx, eax
cmp eax, 2
jne case.default.0x59cb11
mov ecx, edi
call fcn.00513140
mov ebx, eax
jmp case.default.0x59cb11
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
jmp 0x59c5cd
mov ecx, dword [edi + 0xc]
lea eax, [ecx - 0x1b]
cmp eax, 6
jae 0x59c588
mov edx, dword [edi + 0x14]
mov ebx, 2
test edx, edx
je case.default.0x59cb11
mov ebx, dword [edi + 8]
mov esi, dword [edi + 0x10]
mov eax, ebx
shr eax, 8
mov dword [edi + 8], eax
movzx eax, byte [esi]
shld eax, ebx, 0x18
mov dword [edi + 8], eax
dec edx
mov dword [edi + 0x14], edx
inc esi
mov dword [edi + 0x10], esi
add ecx, 0xfffffff8
shr eax, cl
add ecx, 6
mov dword [edi + 0xc], ecx
mov ecx, eax
and ecx, 3
mov dword [edi + 0xf0], ecx
shr eax, 2
and eax, 0xf
shl eax, cl
mov dword [edi + 0xf4], eax
mov esi, dword [edi + 0xcc]
mov ecx, dword [edi + 0x18]
mov ebx, dword [edi + 0x20]
call dword [0x8010bc]
push esi
push ebx
call ecx
add esp, 8
mov dword [edi + 0x244], eax
mov ebx, 0xffffffeb
test eax, eax
je case.default.0x59cb11
mov dword [edi + 4], 0
mov dword [edi], 6
xor eax, eax
mov ecx, dword [ebp - 0x48]
mov ecx, dword [ecx]
jmp 0x59c650
mov edx, dword [ebp - 0x28]
mov edx, dword [edx]
shr edx, cl
add ecx, 2
mov dword [edi + 0xc], ecx
and dl, 3
mov ecx, dword [edi + 0x244]
mov byte [ecx + eax], dl
inc eax
mov ecx, dword [edi + 0xcc]
cmp eax, ecx
jge 0x59c6a7
mov ecx, dword [edi + 0xc]
lea edx, [ecx - 0x1f]
cmp edx, 2
jae 0x59c630
mov esi, dword [edi + 0x14]
test esi, esi
je 0x59d425
mov ebx, dword [edi + 8]
mov dword [ebp - 0x24], ebx
mov edx, dword [ebp - 0x1c]
mov edi, dword [edx + 0x10]
mov edx, ebx
shr edx, 8
mov ebx, dword [ebp - 0x1c]
mov dword [ebx + 8], edx
movzx edx, byte [edi]
mov ebx, dword [ebp - 0x24]
shld edx, ebx, 0x18
mov ebx, dword [ebp - 0x1c]
mov dword [ebx + 8], edx
dec esi
mov ebx, dword [ebp - 0x1c]
mov dword [ebx + 0x14], esi
inc edi
mov esi, dword [ebp - 0x1c]
mov dword [esi + 0x10], edi
mov edi, dword [ebp - 0x1c]
add ecx, 0xfffffff8
jmp 0x59c635
mov dword [edi], 0x16
shl ecx, 6
mov edx, dword [ebp - 0x74]
push edi
push dword [ebp - 0x58]
call fcn.0059e010
add esp, 8
mov ebx, eax
cmp eax, 1
jne case.default.0x59cb11
mov eax, dword [ebp - 0x54]
xorps xmm0, xmm0
movups xmmword [eax + 0x10], xmm0
movups xmmword [eax], xmm0
mov eax, dword [ebp - 0x48]
mov eax, dword [eax]
test eax, eax
je 0x59c8f5
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx]
add edx, 0x3f
xor ecx, ecx
jmp 0x59c70f
xor esi, esi
inc esi
shl esi, cl
mov edi, ecx
shr edi, 5
mov ebx, dword [ebp - 0x54]
or dword [ebx + edi*4], esi
mov edi, dword [ebp - 0x1c]
inc ecx
add edx, 0x40
cmp eax, ecx
je 0x59c8f5
mov bl, byte [edx - 0x3f]
cmp byte [edx - 2], bl
jne 0x59c703
cmp byte [edx - 3], bl
jne 0x59c703
cmp byte [edx - 1], bl
jne 0x59c703
cmp byte [edx], bl
jne 0x59c703
cmp byte [edx - 6], bl
jne 0x59c703
cmp byte [edx - 7], bl
jne 0x59c703
cmp byte [edx - 5], bl
jne 0x59c703
cmp byte [edx - 4], bl
jne 0x59c703
cmp byte [edx - 0xa], bl
jne 0x59c703
cmp byte [edx - 0xb], bl
jne 0x59c703
cmp byte [edx - 9], bl
jne 0x59c703
cmp byte [edx - 8], bl
jne 0x59c703
cmp byte [edx - 0xe], bl
jne 0x59c703
cmp byte [edx - 0xf], bl
jne 0x59c703
cmp byte [edx - 0xd], bl
jne 0x59c703
cmp byte [edx - 0xc], bl
jne 0x59c703
cmp byte [edx - 0x12], bl
jne 0x59c703
cmp byte [edx - 0x13], bl
jne 0x59c703
cmp byte [edx - 0x11], bl
jne 0x59c703
cmp byte [edx - 0x10], bl
jne 0x59c703
cmp byte [edx - 0x16], bl
jne 0x59c703
cmp byte [edx - 0x17], bl
jne 0x59c703
cmp byte [edx - 0x15], bl
jne 0x59c703
cmp byte [edx - 0x14], bl
jne 0x59c703
cmp byte [edx - 0x1a], bl
jne 0x59c703
cmp byte [edx - 0x1b], bl
jne 0x59c703
cmp byte [edx - 0x19], bl
jne 0x59c703
cmp byte [edx - 0x18], bl
jne 0x59c703
cmp byte [edx - 0x1e], bl
jne 0x59c703
cmp byte [edx - 0x1f], bl
jne 0x59c703
cmp byte [edx - 0x1d], bl
jne 0x59c703
cmp byte [edx - 0x1c], bl
jne 0x59c703
cmp byte [edx - 0x22], bl
jne 0x59c703
cmp byte [edx - 0x23], bl
jne 0x59c703
cmp byte [edx - 0x21], bl
jne 0x59c703
cmp byte [edx - 0x20], bl
jne 0x59c703
cmp byte [edx - 0x26], bl
jne 0x59c703
cmp byte [edx - 0x27], bl
jne 0x59c703
cmp byte [edx - 0x25], bl
jne 0x59c703
cmp byte [edx - 0x24], bl
jne 0x59c703
cmp byte [edx - 0x2a], bl
jne 0x59c703
cmp byte [edx - 0x2b], bl
jne 0x59c703
cmp byte [edx - 0x29], bl
jne 0x59c703
cmp byte [edx - 0x28], bl
jne 0x59c703
cmp byte [edx - 0x2e], bl
jne 0x59c703
cmp byte [edx - 0x2f], bl
jne 0x59c703
cmp byte [edx - 0x2d], bl
jne 0x59c703
cmp byte [edx - 0x2c], bl
jne 0x59c703
cmp byte [edx - 0x32], bl
jne 0x59c703
cmp byte [edx - 0x33], bl
jne 0x59c703
cmp byte [edx - 0x31], bl
jne 0x59c703
cmp byte [edx - 0x30], bl
jne 0x59c703
cmp byte [edx - 0x36], bl
jne 0x59c703
cmp byte [edx - 0x37], bl
jne 0x59c703
cmp byte [edx - 0x35], bl
jne 0x59c703
cmp byte [edx - 0x34], bl
jne 0x59c703
cmp byte [edx - 0x3a], bl
jne 0x59c703
cmp byte [edx - 0x3b], bl
jne 0x59c703
cmp byte [edx - 0x39], bl
jne 0x59c703
cmp byte [edx - 0x38], bl
jne 0x59c703
cmp byte [edx - 0x3e], bl
jne 0x59c703
cmp byte [edx - 0x3d], bl
jne 0x59c703
cmp byte [edx - 0x3c], bl
jne 0x59c703
jmp 0x59c6f0
mov dword [edi], 0x17
mov edx, dword [edi + 0xf0]
lea eax, [edx + 1]
mov esi, 0x18
mov ecx, eax
shl esi, cl
mov ecx, edi
mov edi, dword [edi + 0xf4]
test byte [ecx + 0x230], 0x20
jne 0x59d156
lea eax, [edi + esi]
add eax, 0x10
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov edi, dword [ebp - 0x1c]
mov ecx, dword [edi + 0xd4]
shl ecx, 2
mov edx, dword [ebp - 0x6c]
push edi
push dword [ebp - 0x70]
call fcn.0059e010
add esp, 8
mov ebx, eax
cmp eax, 1
jne case.default.0x59cb11
push dword [edi + 0x23c]
mov eax, 0x100
push eax
push eax
mov esi, dword [ebp - 0x64]
push esi
push edi
call fcn.00521830
add esp, 0x14
mov dword [ebp - 0x2c], eax
push dword [edi + 0xd0]
mov eax, 0x2c0
push eax
push eax
push dword [ebp - 0x60]
push edi
call fcn.00521830
add esp, 0x14
mov ebx, eax
and ebx, dword [ebp - 0x2c]
push dword [edi + 0xf8]
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push dword [ebp - 0x5c]
push edi
call fcn.00521830
add esp, 0x14
and eax, ebx
test al, 1
je 0x59d1ff
mov dword [edi + 4], 0
mov dword [edi], 0x18
xor eax, eax
jmp 0x59ca4a
push dword [ebp - 0x28]
call fcn.005219f0
add esp, 4
mov ebx, 2
test eax, eax
je case.default.0x59cb11
mov eax, dword [edi + 0x230]
mov dword [ebp - 0x24], eax
and eax, 0xffffffdf
mov dword [edi + 0x230], eax
mov esi, dword [edi + 8]
mov edx, dword [edi + 0xc]
lea ecx, [edx + 1]
mov dword [edi + 0xc], ecx
bt esi, edx
jae 0x59d147
mov ebx, esi
shr ebx, cl
lea ecx, [edx + 4]
mov dword [edi + 0xc], ecx
and ebx, 7
je 0x59d316
add ebx, 0x11
mov dword [edi + 0x234], ebx
test al, 0x20
jne 0x59d20b
mov dword [edi], 2
xor ebx, ebx
inc ebx
jmp case.default.0x59cb11
cmp eax, 2
mov esi, dword [ebp - 0x64]
jne 0x59d1de
mov eax, 2
mov esi, dword [ebp - 0x5c]
cmp dword [edi + 0x270], 1
je 0x59cf43
mov ecx, dword [esi + 4]
mov dword [edi + 0x970], ecx
mov dword [edi + 0x96c], 0
mov dword [edi + 0x270], 1
xor ecx, ecx
movzx edx, word [esi + 0xc]
cmp ecx, edx
jge 0x59cadf
mov eax, dword [edi + 0x970]
mov dword [ebp - 0x14], 0xffffffff
movzx edx, word [esi + 0xa]
movzx ecx, word [esi + 8]
push edi
lea ebx, [ebp - 0x14]
push ebx
push eax
call fcn.0059d4d0
add esp, 0xc
cmp eax, 1
jne 0x59c581
mov eax, dword [edi + 0x96c]
mov ecx, dword [edi + 0x970]
mov edx, dword [esi]
mov dword [edx + eax*4], ecx
mov eax, dword [ebp - 0x14]
lea eax, [ecx + eax*4]
mov dword [edi + 0x970], eax
mov ecx, dword [edi + 0x96c]
inc ecx
mov dword [edi + 0x96c], ecx
movzx edx, word [esi + 0xc]
cmp ecx, edx
jl 0x59ca84
mov eax, dword [edi + 4]
mov dword [edi + 0x270], 0
lea ecx, [eax + 1]
mov dword [edi + 4], ecx
xor ebx, ebx
inc ebx
cmp eax, 2
jge 0x59c429
cmp ebx, 1
jne 0x59d076
mov edi, dword [ebp - 0x1c]
mov eax, dword [edi]
xor ebx, ebx
inc ebx
cmp eax, 0x1a
ja case.default.0x59cb11
jmp dword [eax*4 + 0x7a0ae4]
mov eax, dword [edi + 4]
cmp eax, 3
jge 0x59cb5f
mov ecx, dword [ebp - 0x48]
lea eax, [ecx + eax*4]
mov ecx, edi
mov edx, dword [ebp - 0x28]
push eax
call fcn.00512ec0
add esp, 4
mov ebx, eax
cmp eax, 1
jne case.default.0x59cb11
mov eax, dword [edi + 4]
inc dword [edi + eax*4 + 0xcc]
mov eax, dword [edi + 4]
cmp dword [edi + eax*4 + 0xcc], 1
ja 0x59cc54
inc eax
mov dword [edi + 4], eax
xor ebx, ebx
inc ebx
jmp case.default.0x59cb11
mov dword [edi], 5
xor ebx, ebx
inc ebx
jmp case.default.0x59cb11
mov eax, dword [edi + 4]
cmp eax, 1
jne 0x59ca36
xor eax, eax
inc eax
mov esi, dword [ebp - 0x60]
jmp 0x59ca4a
mov eax, dword [edi + 0x234]
xor edx, edx
inc edx
mov ecx, eax
shl edx, cl
add edx, 0xfffffff0
mov dword [edi + 0x38], edx
mov ecx, dword [edi + 0x18]
mov esi, dword [edi + 0x20]
call dword [0x8010bc]
push 0x3030
push esi
call ecx
add esp, 8
mov dword [edi + 0xa8], eax
mov ebx, 0xffffffe2
test eax, eax
je case.default.0x59cb11
add eax, 0x1da0
mov dword [edi + 0xac], eax
mov dword [edi], 3
push edi
call fcn.00521590
add esp, 4
mov dword [edi], 4
mov ecx, edi
mov edx, dword [ebp - 0x28]
call fcn.005128f0
mov ebx, eax
cmp eax, 1
jne case.default.0x59cb11
mov eax, dword [edi + 0x230]
test al, 6
jne 0x59cee4
test al, 4
jne 0x59ced3
mov edi, dword [ebp - 0x1c]
cmp dword [edi + 0xb8], 0
je 0x59cec5
mov ecx, edi
call fcn.00512e50
test byte [edi + 0x230], 2
jne 0x59d219
mov dword [edi + 4], 0
mov eax, dword [ebp - 0x68]
mov dword [edi + 0x314], eax
xorps xmm0, xmm0
movups xmmword [edi + 0x270], xmm0
mov dword [edi], 0x12
xor eax, eax
jmp 0x59cb20
mov dword [edi], 0x13
mov ecx, dword [edi + eax*4 + 0xcc]
add ecx, 2
imul eax, eax, 0x9e0
add eax, dword [edi + 0xa8]
mov edx, ecx
push edi
push 0
push eax
call fcn.0059d4d0
add esp, 0xc
mov ebx, eax
cmp eax, 1
jne case.default.0x59cb11
mov dword [edi], 0x14
imul eax, dword [edi + 4], 0x630
add eax, dword [edi + 0xac]
mov ecx, 0x1a
mov edx, 0x1a
push edi
push 0
push eax
call fcn.0059d4d0
add esp, 0xc
mov ebx, eax
cmp eax, 1
jne case.default.0x59cb11
mov dword [edi], 0x15
mov ecx, dword [edi + 4]
mov dword [ebp - 0x24], ecx
imul eax, ecx, 0x630
add eax, dword [edi + 0xac]
mov dword [ebp - 0x18], 0xffffffff
cmp dword [edi + 0x22c], 0
jne 0x59d127
mov dword [ebp - 0x20], eax
mov ecx, dword [edi + 0xc]
lea edx, [ecx - 0x12]
cmp edx, 0xf
jae 0x59cf1f
mov esi, dword [edi + 0x14]
dec esi
mov edi, ecx
cmp esi, 0xffffffff
je 0x59d404
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + 8]
mov ebx, dword [eax + 0x10]
mov edx, ecx
shr edx, 8
mov dword [eax + 8], edx
movzx edx, byte [ebx]
shld edx, ecx, 0x18
mov dword [eax + 8], edx
lea ecx, [edi - 8]
mov dword [eax + 0xc], ecx
mov dword [eax + 0x14], esi
inc ebx
mov dword [eax + 0x10], ebx
dec esi
add edi, 0xffffffe6
cmp edi, 0xf
mov edi, ecx
jb 0x59cd01
shr edx, cl
movzx esi, dl
mov eax, dword [ebp - 0x20]
lea eax, [eax + esi*4]
movzx ebx, byte [eax]
cmp ebx, 9
jae 0x59d376
mov edi, dword [ebp - 0x1c]
movzx edx, bl
add edx, ecx
mov dword [edi + 0xc], edx
movzx edx, word [eax + 2]
movzx eax, byte [edx*4 + 0x7a4310]
movzx ecx, word [edx*4 + 0x7a430e]
mov dword [ebp - 0x20], ecx
mov ecx, dword [edi + 0xc]
mov ebx, 0x20
sub ebx, ecx
cmp ebx, eax
jb 0x59d44a
mov edx, dword [ebp - 0x28]
mov edx, dword [edx]
shr edx, cl
and edx, dword [eax*4 + 0x7a3ea0]
add edx, dword [ebp - 0x20]
add ecx, eax
mov edi, dword [ebp - 0x1c]
mov dword [edi + 0xc], ecx
mov eax, dword [ebp - 0x24]
mov dword [edi + eax*4 + 0xc0], edx
mov dword [edi + 0x22c], 0
inc dword [edi + 4]
mov dword [edi], 0x12
xor ebx, ebx
inc ebx
jmp case.default.0x59cb11
mov ebx, 0xfffffff6
cmp dword [edi + 0xb8], 0
js case.default.0x59cb11
push edi
call fcn.00521610
add esp, 4
test byte [edi + 0x230], 1
je 0x59cea9
mov eax, dword [edi + 0xc]
mov edx, eax
neg edx
and edx, 7
je 0x59ce18
mov esi, dword [edi + 8]
mov ecx, eax
shr esi, cl
add eax, edx
mov dword [edi + 0xc], eax
mov ebx, 0xfffffff1
test dword [edx*4 + 0x7a3ea0], esi
jne case.default.0x59cb11
cmp dword [edi + 0x30], 0
jne 0x59ce5d
mov ecx, 0x20
sub ecx, eax
mov esi, ecx
shr esi, 3
and ecx, 0xfffffff8
mov edx, dword [edi + 0x14]
add edx, esi
mov dword [edi + 0x14], edx
sub dword [edi + 0x10], esi
cmp ecx, 0x20
je 0x59d140
mov esi, dword [ebp - 0x28]
mov esi, dword [esi]
shl esi, cl
mov dword [edi + 8], esi
add ecx, eax
mov dword [edi + 0xc], ecx
mov eax, dword [ebp - 0x30]
mov dword [eax], edx
mov eax, dword [edi + 0x10]
mov ecx, dword [ebp - 0x34]
mov dword [ecx], eax
mov dword [edi], 0x1a
cmp dword [edi + 0x60], 0
je 0x59ce89
mov ecx, edi
mov edx, dword [ebp - 0x3c]
push 1
push dword [ebp - 0x44]
push dword [ebp - 0x40]
call fcn.005127f0
add esp, 0xc
mov ebx, eax
cmp eax, 1
jne case.default.0x59cb11
xor edx, edx
inc edx
mov ecx, edi
call fcn.005127c0
mov esi, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c6b46
mov eax, esi
add esp, 0x6c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [edi], 3
xor ebx, ebx
inc ebx
jmp case.default.0x59cb11
mov eax, dword [edi + 0xb8]
test eax, eax
jg 0x59d39d
mov dword [edi], 0xe
xor ebx, ebx
inc ebx
jmp case.default.0x59cb11
mov edi, dword [ebp - 0x1c]
mov dword [edi], 0xc
xor ebx, ebx
inc ebx
jmp case.default.0x59cb11
mov ecx, dword [edi + 0xc]
mov edx, ecx
neg edx
and edx, 7
je 0x59cc01
mov esi, dword [edi + 8]
shr esi, cl
add ecx, edx
mov dword [edi + 0xc], ecx
mov ebx, 0xfffffff2
test dword [edx*4 + 0x7a3ea0], esi
je 0x59cc01
jmp case.default.0x59cb11
mov esi, 0x10
jmp 0x59c4ea
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
jmp 0x59cd3d
mov eax, dword [edi + 4]
jmp 0x59c629
mov eax, dword [edi + 4]
jmp 0x59cc5a
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
jmp 0x59c6ad
mov ecx, dword [edi + 0x96c]
jmp 0x59ca76
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x40]
push edi
push dword [ebp - 0x44]
call fcn.00700050
add esp, 8
mov ebx, eax
cmp eax, 1
jne case.default.0x59cb11
jmp 0x59cec5
mov ecx, dword [edi + 0xc]
lea eax, [ecx - 0x1b]
cmp eax, 6
jae 0x59cfb3
mov edi, dword [ebp - 0x1c]
mov edx, dword [edi + 0x14]
mov ebx, 2
test edx, edx
je case.default.0x59cb11
mov ebx, dword [edi + 8]
mov esi, dword [edi + 0x10]
mov eax, ebx
shr eax, 8
mov dword [edi + 8], eax
movzx eax, byte [esi]
shld eax, ebx, 0x18
mov dword [edi + 8], eax
dec edx
mov dword [edi + 0x14], edx
inc esi
mov dword [edi + 0x10], esi
add ecx, 0xfffffff8
jmp 0x59cfb8
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
shr eax, cl
and eax, 0x3f
mov edi, dword [ebp - 0x1c]
mov dword [edi + 0x234], eax
add ecx, 6
mov dword [edi + 0xc], ecx
lea ecx, [eax - 0x1f]
mov ebx, 0xfffffff3
cmp ecx, 0xffffffeb
jb case.default.0x59cb11
mov dword [edi], 2
jmp 0x59cb87
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 0x10]
mov edx, dword [ebp - 0x34]
mov dword [edx], eax
mov eax, dword [ecx + 0x14]
mov ecx, dword [ebp - 0x30]
mov dword [ecx], eax
mov ebx, 2
test eax, eax
je 0x59d08e
mov esi, dword [ebp - 0x34]
mov edx, dword [ebp - 0x1c]
mov eax, dword [esi]
mov al, byte [eax]
mov ecx, dword [edx + 0x30]
mov byte [edx + ecx + 0x28], al
inc dword [edx + 0x30]
inc dword [esi]
mov eax, dword [ebp - 0x30]
dec dword [eax]
jne 0x59d00e
jmp 0x59d08e
mov edi, dword [ebp - 0x1c]
mov eax, dword [edi + 0xc]
mov ecx, 0x20
sub ecx, eax
mov esi, ecx
shr esi, 3
mov edx, dword [edi + 0x14]
add edx, esi
mov dword [edi + 0x14], edx
sub dword [edi + 0x10], esi
and ecx, 0xfffffff8
xor esi, esi
cmp ecx, 0x20
je 0x59d055
mov esi, dword [ebp - 0x28]
mov esi, dword [esi]
shl esi, cl
mov edi, dword [ebp - 0x1c]
mov dword [edi + 8], esi
add ecx, eax
mov dword [edi + 0xc], ecx
mov eax, dword [ebp - 0x30]
mov dword [eax], edx
mov eax, dword [edi + 0x10]
mov ecx, dword [ebp - 0x34]
mov dword [ecx], eax
jmp 0x59d08e
mov ebx, 2
jmp 0x59d08e
cmp ebx, 2
je 0x59d09c
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x30], 0
je 0x59d027
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x30], 0
mov ecx, dword [ebp - 0x1c]
mov edx, ebx
jmp 0x59ce8e
mov ebx, eax
jmp 0x59d08e
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x60], 0
je 0x59d0bf
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x3c]
push 1
push dword [ebp - 0x44]
push dword [ebp - 0x40]
call fcn.005127f0
add esp, 0xc
test eax, eax
js 0x59d098
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x30]
test eax, eax
je 0x59cfe8
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x14], 0
je 0x59d105
mov ecx, dword [ebp - 0x30]
cmp dword [ecx], 0
je 0x59d06f
mov edx, dword [ebp - 0x34]
mov ecx, dword [edx]
mov cl, byte [ecx]
mov edi, dword [ebp - 0x1c]
mov byte [edi + eax + 0x28], cl
mov eax, dword [edi + 0x30]
inc eax
mov dword [edi + 0x30], eax
mov dword [edi + 0x14], eax
inc dword [edx]
mov eax, dword [ebp - 0x30]
dec dword [eax]
xor ebx, ebx
inc ebx
jmp case.default.0x59cb11
mov edi, dword [ebp - 0x1c]
mov dword [edi + 0x30], 0
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
mov dword [edi + 0x14], eax
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
mov dword [edi + 0x10], eax
xor ebx, ebx
inc ebx
jmp case.default.0x59cb11
mov edx, dword [edi + 0xbc]
jmp 0x59cd63
xor esi, esi
jmp 0x59ce95
xor edx, edx
jmp 0x59c3a1
xor esi, esi
jmp 0x59ce48
mov dword [edi + 0x234], 0x10
jmp 0x59ca20
lea ecx, [edi + 0x10]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], SafeArrayGetElemsize
cmp edi, 0x7ffffffb
ja 0x59d1cd
mov esi, 0x7ffffffc
sub esi, edi
xor ebx, ebx
dec ebx
mov dword [ebp - 0x2c], ebx
mov ecx, edx
shl dword [ebp - 0x2c], cl
shr esi, cl
add esi, 4
mov ecx, 0xfffffffb
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
shr esi, 1
inc ebx
add ecx, 2
cmp dword [ebp - 0x20], 3
mov dword [ebp - 0x20], esi
ja 0x59d18d
mov esi, dword [ebp - 0x38]
bt esi, ebx
mov ebx, 0
setb bl
add ebx, ecx
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x20], ecx
cmp ebx, 0xffffffff
je 0x59d1cd
mov esi, ebx
mov ecx, edx
shl esi, cl
mov ecx, dword [ebp - 0x2c]
not ecx
or esi, ecx
lea ecx, [edi + esi]
add ecx, 0x11
mov dword [ebp - 0x20], ecx
mov edx, 0x3e
mov ecx, eax
shl edx, cl
add dword [ebp - 0x24], edx
jmp 0x59c92e
test eax, eax
je 0x59ca4a
mov ecx, edi
mov edx, 0xffffffe1
jmp 0x59ce8e
lea eax, [edi + 0x28]
mov ebx, 2
jmp 0x59c3c1
mov ecx, edi
mov edx, 0xffffffea
jmp 0x59ce8e
mov dword [edi], 1
xor ebx, ebx
inc ebx
jmp case.default.0x59cb11
mov dword [edi], 0xb
xor ebx, ebx
inc ebx
jmp case.default.0x59cb11
mov ecx, edi
mov edx, dword [ebp - 0x3c]
push 0
push dword [ebp - 0x44]
push dword [ebp - 0x40]
call fcn.005127f0
add esp, 0xc
mov ebx, eax
cmp eax, 1
jne case.default.0x59cb11
mov ecx, edi
call fcn.007001b0
mov cl, byte [edi + 0x234]
xor ebx, ebx
inc ebx
mov eax, ebx
shl eax, cl
cmp dword [edi + 0x40], eax
jne 0x59d269
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 0x38]
mov dword [ecx + 0x3c], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
cmp eax, 0x10
je 0x59d28f
cmp eax, 0xf
je 0x59d29d
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 4], 0
je 0x59d2d1
mov edi, dword [ebp - 0x1c]
mov dword [edi], 8
jmp case.default.0x59cb11
mov edi, dword [ebp - 0x1c]
mov dword [edi], 0xa
jmp case.default.0x59cb11
mov edi, dword [ebp - 0x1c]
mov eax, dword [edi + 0x24c]
test eax, eax
je 0x59d2b6
mov ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jne 0x59d4b2
cmp dword [edi + 0xb8], 0
mov eax, 0xe
mov ecx, 7
cmove ecx, eax
mov dword [edi], ecx
jmp case.default.0x59cb11
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0xb8], 0
je 0x59d2eb
mov edi, dword [ebp - 0x1c]
mov dword [edi], 9
jmp case.default.0x59cb11
mov edi, dword [ebp - 0x1c]
mov dword [edi], 0xe
jmp case.default.0x59cb11
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c6b46
mov ecx, edi
mov edx, 0xffffffec
add esp, 0x6c
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.005127c0
mov ebx, esi
shr ebx, cl
lea ecx, [edx + 7]
mov dword [edi + 0xc], ecx
and ebx, 7
je 0x59d335
cmp ebx, 1
je 0x59d347
or ebx, 8
mov edi, dword [ebp - 0x1c]
jmp 0x59ca1a
mov edi, dword [ebp - 0x1c]
mov dword [edi + 0x234], 0x11
jmp 0x59ca20
mov ebx, 0xfffffff3
test byte [ebp - 0x24], 0x20
mov edi, dword [ebp - 0x1c]
je case.default.0x59cb11
add edx, 8
mov dword [edi + 0xc], edx
bt esi, ecx
jb case.default.0x59cb11
mov eax, dword [ebp - 0x24]
mov dword [edi + 0x230], eax
jmp 0x59ca20
add ecx, 8
mov edi, dword [ebp - 0x1c]
mov dword [edi + 0xc], ecx
shr edx, 8
and edx, dword [ebx*4 + 0x7a3e80]
and edx, 0x7f
lea edx, [eax + edx*4]
movzx eax, word [eax + 2]
lea eax, [edx + eax*4]
mov bl, byte [eax]
jmp 0x59cd57
mov ecx, dword [edi + 0xc]
inc eax
lea edx, [ecx - 0x19]
cmp edx, 7
ja 0x59d3e6
mov edx, dword [ebp - 0x1c]
mov edi, dword [edx + 0x14]
test edi, edi
je 0x59d428
mov edx, dword [ebp - 0x1c]
mov esi, dword [edx + 8]
mov dword [ebp - 0x24], esi
mov esi, dword [edx + 0x10]
mov dword [ebp - 0x20], esi
mov ebx, dword [ebp - 0x24]
shr ebx, 8
mov dword [edx + 8], ebx
movzx ebx, byte [esi]
mov esi, dword [ebp - 0x24]
shld ebx, esi, 0x18
mov dword [edx + 8], ebx
dec edi
mov dword [edx + 0x14], edi
mov esi, dword [ebp - 0x20]
inc esi
mov dword [edx + 0x10], esi
add ecx, 0xfffffff8
add ecx, 8
mov edi, dword [ebp - 0x1c]
mov dword [edi + 0xc], ecx
lea edx, [eax - 2]
mov dword [edi + 0xb8], edx
dec eax
cmp eax, 1
jle 0x59cec5
jmp 0x59d3a1
lea esi, [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x28]
push esi
call fcn.00513f80
add esp, 4
test eax, eax
je 0x59d428
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
jmp 0x59cd63
mov dword [edi + 4], eax
mov ebx, 2
jmp case.default.0x59cb11
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x4c]
mov dword [edi + 0xbc], eax
mov dword [edi + 0x22c], 1
jmp 0x59d428
mov dword [ebp - 0x4c], edx
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx + 0x14]
dec edx
mov dword [ebp - 0x2c], edx
cmp dword [ebp - 0x2c], 0xffffffff
je 0x59d432
mov edx, dword [ebp - 0x1c]
mov edi, dword [edx + 8]
mov dword [ebp - 0x50], edi
mov edi, dword [edx + 0x10]
mov dword [ebp - 0x38], edi
mov edi, dword [ebp - 0x50]
shr edi, 8
mov dword [edx + 8], edi
mov edx, dword [ebp - 0x38]
movzx edx, byte [edx]
mov edi, dword [ebp - 0x50]
shld edx, edi, 0x18
mov edi, dword [ebp - 0x1c]
mov dword [edi + 8], edx
add ecx, 0xfffffff8
mov esi, edi
mov dword [edi + 0xc], ecx
mov edi, dword [ebp - 0x2c]
mov dword [esi + 0x14], edi
inc dword [ebp - 0x38]
mov edi, dword [ebp - 0x38]
mov esi, dword [ebp - 0x1c]
mov dword [esi + 0x10], edi
dec dword [ebp - 0x2c]
add ebx, 8
cmp ebx, eax
jae 0x59cd8d
jmp 0x59d457
mov edx, dword [edi + 0x34]
mov ecx, edi
call fcn.007001e0
add eax, dword [edi + 0x34]
mov dword [edi + 0x34], eax
cmp eax, dword [edi + 0x40]
jge case.default.0x59cb11
jmp 0x59d2b6