Function at 0x59ec90
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 [0x80e040]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ecx, ecx
je 0x59ecca
mov eax, dword [edi + 0x114]
mov dword [ecx], eax
cmp dword [edi + 0x5c], 0
js 0x59fa82
mov eax, dword [ebp - 0x3c]
cmp dword [eax], 0
je 0x59fa89
test edx, edx
je 0x59fc49
cmp dword [edx], 0
je 0x59fc49
cmp dword [edi + 0x30], 0
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x40], edx
jne 0x59fb42
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.0x59f461
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 + 0x7a99da]
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.005139c0
mov ebx, 0xffffffe5
test eax, eax
je case.default.0x59f461
mov edx, dword [edi + 0xf0]
mov ebx, dword [edi + 0xf4]
movzx eax, word [edi + 0xa2]
mov dword [ebp - 0x4c], eax
test ebx, ebx
je 0x59f865
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 0x59ee21
add esi, 0x10
cmp esi, dword [ebp - 0x4c]
jae 0x59eeaf
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 0x59ee66
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 0x59ee4a
mov edi, dword [ebp - 0x1c]
mov dword [edi], 7
mov ecx, edi
call fcn.005a0db0
mov ebx, eax
cmp eax, 2
jne case.default.0x59f461
mov ecx, edi
call fcn.00513a70
mov ebx, eax
jmp case.default.0x59f461
mov eax, dword [ebp - 0x28]
mov eax, dword [eax]
jmp 0x59ef1d
mov ecx, dword [edi + 0xc]
lea eax, [ecx - 0x1b]
cmp eax, 6
jae 0x59eed8
mov edx, dword [edi + 0x14]
mov ebx, 2
test edx, edx
je case.default.0x59f461
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 [0x8072c0]
push esi
push ebx
call ecx
add esp, 8
mov dword [edi + 0x244], eax
mov ebx, 0xffffffeb
test eax, eax
je case.default.0x59f461
mov dword [edi + 4], 0
mov dword [edi], 6
xor eax, eax
mov ecx, dword [ebp - 0x48]
mov ecx, dword [ecx]
jmp 0x59efa0
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 0x59eff7
mov ecx, dword [edi + 0xc]
lea edx, [ecx - 0x1f]
cmp edx, 2
jae 0x59ef80
mov esi, dword [edi + 0x14]
test esi, esi
je 0x59fd75
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 0x59ef85
mov dword [edi], 0x16
shl ecx, 6
mov edx, dword [ebp - 0x74]
push edi
push dword [ebp - 0x58]
call fcn.005a0960
add esp, 8
mov ebx, eax
cmp eax, 1
jne case.default.0x59f461
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 0x59f245
mov ecx, dword [ebp - 0x58]
mov edx, dword [ecx]
add edx, 0x3f
xor ecx, ecx
jmp 0x59f05f
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 0x59f245
mov bl, byte [edx - 0x3f]
cmp byte [edx - 2], bl
jne 0x59f053
cmp byte [edx - 3], bl
jne 0x59f053
cmp byte [edx - 1], bl
jne 0x59f053
cmp byte [edx], bl
jne 0x59f053
cmp byte [edx - 6], bl
jne 0x59f053
cmp byte [edx - 7], bl
jne 0x59f053
cmp byte [edx - 5], bl
jne 0x59f053
cmp byte [edx - 4], bl
jne 0x59f053
cmp byte [edx - 0xa], bl
jne 0x59f053
cmp byte [edx - 0xb], bl
jne 0x59f053
cmp byte [edx - 9], bl
jne 0x59f053
cmp byte [edx - 8], bl
jne 0x59f053
cmp byte [edx - 0xe], bl
jne 0x59f053
cmp byte [edx - 0xf], bl
jne 0x59f053
cmp byte [edx - 0xd], bl
jne 0x59f053
cmp byte [edx - 0xc], bl
jne 0x59f053
cmp byte [edx - 0x12], bl
jne 0x59f053
cmp byte [edx - 0x13], bl
jne 0x59f053
cmp byte [edx - 0x11], bl
jne 0x59f053
cmp byte [edx - 0x10], bl
jne 0x59f053
cmp byte [edx - 0x16], bl
jne 0x59f053
cmp byte [edx - 0x17], bl
jne 0x59f053
cmp byte [edx - 0x15], bl
jne 0x59f053
cmp byte [edx - 0x14], bl
jne 0x59f053
cmp byte [edx - 0x1a], bl
jne 0x59f053
cmp byte [edx - 0x1b], bl
jne 0x59f053
cmp byte [edx - 0x19], bl
jne 0x59f053
cmp byte [edx - 0x18], bl
jne 0x59f053
cmp byte [edx - 0x1e], bl
jne 0x59f053
cmp byte [edx - 0x1f], bl
jne 0x59f053
cmp byte [edx - 0x1d], bl
jne 0x59f053
cmp byte [edx - 0x1c], bl
jne 0x59f053
cmp byte [edx - 0x22], bl
jne 0x59f053
cmp byte [edx - 0x23], bl
jne 0x59f053
cmp byte [edx - 0x21], bl
jne 0x59f053
cmp byte [edx - 0x20], bl
jne 0x59f053
cmp byte [edx - 0x26], bl
jne 0x59f053
cmp byte [edx - 0x27], bl
jne 0x59f053
cmp byte [edx - 0x25], bl
jne 0x59f053
cmp byte [edx - 0x24], bl
jne 0x59f053
cmp byte [edx - 0x2a], bl
jne 0x59f053
cmp byte [edx - 0x2b], bl
jne 0x59f053
cmp byte [edx - 0x29], bl
jne 0x59f053
cmp byte [edx - 0x28], bl
jne 0x59f053
cmp byte [edx - 0x2e], bl
jne 0x59f053
cmp byte [edx - 0x2f], bl
jne 0x59f053
cmp byte [edx - 0x2d], bl
jne 0x59f053
cmp byte [edx - 0x2c], bl
jne 0x59f053
cmp byte [edx - 0x32], bl
jne 0x59f053
cmp byte [edx - 0x33], bl
jne 0x59f053
cmp byte [edx - 0x31], bl
jne 0x59f053
cmp byte [edx - 0x30], bl
jne 0x59f053
cmp byte [edx - 0x36], bl
jne 0x59f053
cmp byte [edx - 0x37], bl
jne 0x59f053
cmp byte [edx - 0x35], bl
jne 0x59f053
cmp byte [edx - 0x34], bl
jne 0x59f053
cmp byte [edx - 0x3a], bl
jne 0x59f053
cmp byte [edx - 0x3b], bl
jne 0x59f053
cmp byte [edx - 0x39], bl
jne 0x59f053
cmp byte [edx - 0x38], bl
jne 0x59f053
cmp byte [edx - 0x3e], bl
jne 0x59f053
cmp byte [edx - 0x3d], bl
jne 0x59f053
cmp byte [edx - 0x3c], bl
jne 0x59f053
jmp 0x59f040
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 0x59faa6
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.005a0960
add esp, 8
mov ebx, eax
cmp eax, 1
jne case.default.0x59f461
push dword [edi + 0x23c]
mov eax, 0x100
push eax
push eax
mov esi, dword [ebp - 0x64]
push esi
push edi
call fcn.00522ed0
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.00522ed0
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.00522ed0
add esp, 0x14
and eax, ebx
test al, 1
je 0x59fb4f
mov dword [edi + 4], 0
mov dword [edi], 0x18
xor eax, eax
jmp 0x59f39a
push dword [ebp - 0x28]
call fcn.00523090
add esp, 4
mov ebx, 2
test eax, eax
je case.default.0x59f461
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 0x59fa97
mov ebx, esi
shr ebx, cl
lea ecx, [edx + 4]
mov dword [edi + 0xc], ecx
and ebx, 7
je 0x59fc66
add ebx, 0x11
mov dword [edi + 0x234], ebx
test al, 0x20
jne 0x59fb69
mov dword [edi], 2
xor ebx, ebx
inc ebx
jmp case.default.0x59f461
cmp eax, 2
mov esi, dword [ebp - 0x64]
jne 0x59fb2e
mov eax, 2
mov esi, dword [ebp - 0x5c]
cmp dword [edi + 0x270], 1
je 0x59f893
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 0x59f42f
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.0059fe20
add esp, 0xc
cmp eax, 1
jne 0x59eed1
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 0x59f3d4
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 0x59ed79
cmp ebx, 1
jne 0x59f9c6
mov edi, dword [ebp - 0x1c]
mov eax, dword [edi]
xor ebx, ebx
inc ebx
cmp eax, 0x1a
ja case.default.0x59f461
jmp dword [eax*4 + 0x7a6d44]
mov eax, dword [edi + 4]
cmp eax, 3
jge 0x59f4af
mov ecx, dword [ebp - 0x48]
lea eax, [ecx + eax*4]
mov ecx, edi
mov edx, dword [ebp - 0x28]
push eax
call fcn.005137f0
add esp, 4
mov ebx, eax
cmp eax, 1
jne case.default.0x59f461
mov eax, dword [edi + 4]
inc dword [edi + eax*4 + 0xcc]
mov eax, dword [edi + 4]
cmp dword [edi + eax*4 + 0xcc], 1
ja 0x59f5a4
inc eax
mov dword [edi + 4], eax
xor ebx, ebx
inc ebx
jmp case.default.0x59f461
mov dword [edi], 5
xor ebx, ebx
inc ebx
jmp case.default.0x59f461
mov eax, dword [edi + 4]
cmp eax, 1
jne 0x59f386
xor eax, eax
inc eax
mov esi, dword [ebp - 0x60]
jmp 0x59f39a
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 [0x8072c0]
push 0x3030
push esi
call ecx
add esp, 8
mov dword [edi + 0xa8], eax
mov ebx, 0xffffffe2
test eax, eax
je case.default.0x59f461
add eax, 0x1da0
mov dword [edi + 0xac], eax
mov dword [edi], 3
push edi
call fcn.00522c30
add esp, 4
mov dword [edi], 4
mov ecx, edi
mov edx, dword [ebp - 0x28]
call fcn.00513220
mov ebx, eax
cmp eax, 1
jne case.default.0x59f461
mov eax, dword [edi + 0x230]
test al, 6
jne 0x59f834
test al, 4
jne 0x59f823
mov edi, dword [ebp - 0x1c]
cmp dword [edi + 0xb8], 0
je 0x59f815
mov ecx, edi
call fcn.00513780
test byte [edi + 0x230], 2
jne 0x59fb5b
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 0x59f470
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.0059fe20
add esp, 0xc
mov ebx, eax
cmp eax, 1
jne case.default.0x59f461
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.0059fe20
add esp, 0xc
mov ebx, eax
cmp eax, 1
jne case.default.0x59f461
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 0x59fa77
mov dword [ebp - 0x20], eax
mov ecx, dword [edi + 0xc]
lea edx, [ecx - 0x12]
cmp edx, 0xf
jae 0x59f86f
mov esi, dword [edi + 0x14]
dec esi
mov edi, ecx
cmp esi, 0xffffffff
je 0x59fd54
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 0x59f651
shr edx, cl
movzx esi, dl
mov eax, dword [ebp - 0x20]
lea eax, [eax + esi*4]
movzx ebx, byte [eax]
cmp ebx, 9
jae 0x59fcc6
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 + 0x7aa680]
movzx ecx, word [edx*4 + 0x7aa67e]
mov dword [ebp - 0x20], ecx
mov ecx, dword [edi + 0xc]
mov ebx, 0x20
sub ebx, ecx
cmp ebx, eax
jb 0x59fd9a
mov edx, dword [ebp - 0x28]
mov edx, dword [edx]
shr edx, cl
and edx, dword [eax*4 + 0x7aa210]
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.0x59f461
mov ebx, 0xfffffff6
cmp dword [edi + 0xb8], 0
js case.default.0x59f461
push edi
call fcn.00522cb0
add esp, 4
test byte [edi + 0x230], 1
je 0x59f7f9
mov eax, dword [edi + 0xc]
mov edx, eax
neg edx
and edx, 7
je 0x59f768
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 + 0x7aa210], esi
jne case.default.0x59f461
cmp dword [edi + 0x30], 0
jne 0x59f7ad
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 0x59fa90
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 0x59f7d9
mov ecx, edi
mov edx, dword [ebp - 0x3c]
push 1
push dword [ebp - 0x44]
push dword [ebp - 0x40]
call fcn.00513120
add esp, 0xc
mov ebx, eax
cmp eax, 1
jne case.default.0x59f461
xor edx, edx
inc edx
mov ecx, edi
call fcn.005130f0
mov esi, eax
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c9f16
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.0x59f461
mov eax, dword [edi + 0xb8]
test eax, eax
jg 0x59fced
mov dword [edi], 0xe
xor ebx, ebx
inc ebx
jmp case.default.0x59f461
mov edi, dword [ebp - 0x1c]
mov dword [edi], 0xc
xor ebx, ebx
inc ebx
jmp case.default.0x59f461
mov ecx, dword [edi + 0xc]
mov edx, ecx
neg edx
and edx, 7
je 0x59f551
mov esi, dword [edi + 8]
shr esi, cl
add ecx, edx
mov dword [edi + 0xc], ecx
mov ebx, 0xfffffff2
test dword [edx*4 + 0x7aa210], esi
je 0x59f551
jmp case.default.0x59f461
mov esi, 0x10
jmp 0x59ee3a
mov eax, dword [ebp - 0x28]
mov edx, dword [eax]
jmp 0x59f68d
mov eax, dword [edi + 4]
jmp 0x59ef79
mov eax, dword [edi + 4]
jmp 0x59f5aa
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
jmp 0x59effd
mov ecx, dword [edi + 0x96c]
jmp 0x59f3c6
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x40]
push edi
push dword [ebp - 0x44]
call fcn.00707ff0
add esp, 8
mov ebx, eax
cmp eax, 1
jne case.default.0x59f461
jmp 0x59f815
mov ecx, dword [edi + 0xc]
lea eax, [ecx - 0x1b]
cmp eax, 6
jae 0x59f903
mov edi, dword [ebp - 0x1c]
mov edx, dword [edi + 0x14]
mov ebx, 2
test edx, edx
je case.default.0x59f461
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 0x59f908
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.0x59f461
mov dword [edi], 2
jmp 0x59f4d7
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 0x59f9de
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 0x59f95e
jmp 0x59f9de
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 0x59f9a5
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 0x59f9de
mov ebx, 2
jmp 0x59f9de
cmp ebx, 2
je 0x59f9ec
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x30], 0
je 0x59f977
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x30], 0
mov ecx, dword [ebp - 0x1c]
mov edx, ebx
jmp 0x59f7de
mov ebx, eax
jmp 0x59f9de
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x60], 0
je 0x59fa0f
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x3c]
push 1
push dword [ebp - 0x44]
push dword [ebp - 0x40]
call fcn.00513120
add esp, 0xc
test eax, eax
js 0x59f9e8
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x30]
test eax, eax
je 0x59f938
mov ecx, dword [ebp - 0x1c]
cmp dword [ecx + 0x14], 0
je 0x59fa55
mov ecx, dword [ebp - 0x30]
cmp dword [ecx], 0
je 0x59f9bf
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.0x59f461
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.0x59f461
mov edx, dword [edi + 0xbc]
jmp 0x59f6b3
xor esi, esi
jmp 0x59f7e5
xor edx, edx
jmp 0x59ecf1
xor esi, esi
jmp 0x59f798
mov dword [edi + 0x234], 0x10
jmp 0x59f370
lea ecx, [edi + 0x10]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x20], SafeArrayGetElemsize
cmp edi, 0x7ffffffb
ja 0x59fb1d
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 0x59fadd
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 0x59fb1d
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 0x59f27e
test eax, eax
je 0x59f39a
mov ecx, edi
mov edx, 0xffffffe1
jmp 0x59f7de
lea eax, [edi + 0x28]
mov ebx, 2
jmp 0x59ed11
mov ecx, edi
mov edx, 0xffffffea
jmp 0x59f7de
mov dword [edi], 0xb
xor ebx, ebx
inc ebx
jmp case.default.0x59f461
mov dword [edi], 1
xor ebx, ebx
inc ebx
jmp case.default.0x59f461
mov ecx, edi
mov edx, dword [ebp - 0x3c]
push 0
push dword [ebp - 0x44]
push dword [ebp - 0x40]
call fcn.00513120
add esp, 0xc
mov ebx, eax
cmp eax, 1
jne case.default.0x59f461
mov ecx, edi
call fcn.00708150
mov cl, byte [edi + 0x234]
xor ebx, ebx
inc ebx
mov eax, ebx
shl eax, cl
cmp dword [edi + 0x40], eax
jne 0x59fbb9
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 0x59fbdf
cmp eax, 0xf
je 0x59fbed
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 4], 0
je 0x59fc21
mov edi, dword [ebp - 0x1c]
mov dword [edi], 8
jmp case.default.0x59f461
mov edi, dword [ebp - 0x1c]
mov dword [edi], 0xa
jmp case.default.0x59f461
mov edi, dword [ebp - 0x1c]
mov eax, dword [edi + 0x24c]
test eax, eax
je 0x59fc06
mov ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jne 0x59fe02
cmp dword [edi + 0xb8], 0
mov eax, 0xe
mov ecx, 7
cmove ecx, eax
mov dword [edi], ecx
jmp case.default.0x59f461
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0xb8], 0
je 0x59fc3b
mov edi, dword [ebp - 0x1c]
mov dword [edi], 9
jmp case.default.0x59f461
mov edi, dword [ebp - 0x1c]
mov dword [edi], 0xe
jmp case.default.0x59f461
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005c9f16
mov ecx, edi
mov edx, 0xffffffec
add esp, 0x6c
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.005130f0
mov ebx, esi
shr ebx, cl
lea ecx, [edx + 7]
mov dword [edi + 0xc], ecx
and ebx, 7
je 0x59fc85
cmp ebx, 1
je 0x59fc97
or ebx, 8
mov edi, dword [ebp - 0x1c]
jmp 0x59f36a
mov edi, dword [ebp - 0x1c]
mov dword [edi + 0x234], 0x11
jmp 0x59f370
mov ebx, 0xfffffff3
test byte [ebp - 0x24], 0x20
mov edi, dword [ebp - 0x1c]
je case.default.0x59f461
add edx, 8
mov dword [edi + 0xc], edx
bt esi, ecx
jb case.default.0x59f461
mov eax, dword [ebp - 0x24]
mov dword [edi + 0x230], eax
jmp 0x59f370
add ecx, 8
mov edi, dword [ebp - 0x1c]
mov dword [edi + 0xc], ecx
shr edx, 8
and edx, dword [ebx*4 + 0x7aa1f0]
and edx, 0x7f
lea edx, [eax + edx*4]
movzx eax, word [eax + 2]
lea eax, [edx + eax*4]
mov bl, byte [eax]
jmp 0x59f6a7
mov ecx, dword [edi + 0xc]
inc eax
lea edx, [ecx - 0x19]
cmp edx, 7
ja 0x59fd36
mov edx, dword [ebp - 0x1c]
mov edi, dword [edx + 0x14]
test edi, edi
je 0x59fd78
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 0x59f815
jmp 0x59fcf1
lea esi, [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x28]
push esi
call fcn.005148b0
add esp, 4
test eax, eax
je 0x59fd78
mov edx, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
jmp 0x59f6b3
mov dword [edi + 4], eax
mov ebx, 2
jmp case.default.0x59f461
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x4c]
mov dword [edi + 0xbc], eax
mov dword [edi + 0x22c], 1
jmp 0x59fd78
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 0x59fd82
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 0x59f6dd
jmp 0x59fda7
mov edx, dword [edi + 0x34]
mov ecx, edi
call fcn.00708180
add eax, dword [edi + 0x34]
mov dword [edi + 0x34], eax
cmp eax, dword [edi + 0x40]
jge case.default.0x59f461
jmp 0x59fc06