Function at 0x412c60
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
je 0x412f1a
mov esi, dword [esp + 0x10]
test esi, esi
je 0x412f1a
mov eax, dword [edi]
mov ecx, dword [esi]
mov edx, dword [esi + 4]
xor ecx, eax
mov eax, dword [esi + 8]
mov dword [esi], ecx
mov ecx, dword [edi + 4]
push str.cw
xor edx, ecx
push esi
mov dword [esi + 4], edx
mov edx, dword [edi + 8]
xor eax, edx
mov edx, dword [esi + 0xc]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
xor edx, eax
mov dword [esi + 0xc], edx
call fcn.00412f30
push esi
call fcn.00412ff0
mov ecx, dword [edi + 0x10]
mov edx, dword [esi]
mov eax, dword [esi + 4]
xor edx, ecx
mov ecx, dword [esi + 8]
mov dword [esi], edx
mov edx, dword [edi + 0x14]
push str.cw
xor eax, edx
push esi
mov dword [esi + 4], eax
mov eax, dword [edi + 0x18]
xor ecx, eax
mov eax, dword [esi + 0xc]
mov dword [esi + 8], ecx
mov ecx, dword [edi + 0x1c]
xor eax, ecx
mov dword [esi + 0xc], eax
call fcn.00412f30
push esi
call fcn.00412ff0
mov edx, dword [edi + 0x20]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
xor eax, edx
mov edx, dword [esi + 8]
mov dword [esi], eax
mov eax, dword [edi + 0x24]
push str.cw
xor ecx, eax
push esi
mov dword [esi + 4], ecx
mov ecx, dword [edi + 0x28]
xor edx, ecx
mov ecx, dword [esi + 0xc]
mov dword [esi + 8], edx
mov edx, dword [edi + 0x2c]
xor ecx, edx
mov dword [esi + 0xc], ecx
call fcn.00412f30
push esi
call fcn.00412ff0
mov eax, dword [edi + 0x30]
mov ecx, dword [esi]
mov edx, dword [esi + 4]
xor ecx, eax
mov eax, dword [esi + 8]
mov dword [esi], ecx
mov ecx, dword [edi + 0x34]
push str.cw
xor edx, ecx
push esi
mov dword [esi + 4], edx
mov edx, dword [edi + 0x38]
xor eax, edx
mov edx, dword [esi + 0xc]
mov dword [esi + 8], eax
mov eax, dword [edi + 0x3c]
xor edx, eax
mov dword [esi + 0xc], edx
call fcn.00412f30
push esi
call fcn.00412ff0
mov ecx, dword [edi + 0x40]
mov edx, dword [esi]
mov eax, dword [esi + 4]
xor edx, ecx
mov ecx, dword [esi + 8]
mov dword [esi], edx
mov edx, dword [edi + 0x44]
push str.cw
xor eax, edx
push esi
mov dword [esi + 4], eax
mov eax, dword [edi + 0x48]
xor ecx, eax
mov eax, dword [esi + 0xc]
mov dword [esi + 8], ecx
mov ecx, dword [edi + 0x4c]
xor eax, ecx
mov dword [esi + 0xc], eax
call fcn.00412f30
push esi
call fcn.00412ff0
mov edx, dword [edi + 0x50]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
xor eax, edx
mov edx, dword [esi + 8]
mov dword [esi], eax
mov eax, dword [edi + 0x54]
push str.cw
xor ecx, eax
push esi
mov dword [esi + 4], ecx
mov ecx, dword [edi + 0x58]
xor edx, ecx
mov ecx, dword [esi + 0xc]
mov dword [esi + 8], edx
mov edx, dword [edi + 0x5c]
xor ecx, edx
mov dword [esi + 0xc], ecx
call fcn.00412f30
add esp, 0x44
push esi
call fcn.00412ff0
mov eax, dword [edi + 0x60]
mov ecx, dword [esi]
mov edx, dword [esi + 4]
xor ecx, eax
mov eax, dword [esi + 8]
mov dword [esi], ecx
mov ecx, dword [edi + 0x64]
push str.cw
xor edx, ecx
push esi
mov dword [esi + 4], edx
mov edx, dword [edi + 0x68]
xor eax, edx
mov edx, dword [esi + 0xc]
mov dword [esi + 8], eax
mov eax, dword [edi + 0x6c]
xor edx, eax
mov dword [esi + 0xc], edx
call fcn.00412f30
push esi
call fcn.00412ff0
mov ecx, dword [edi + 0x70]
mov edx, dword [esi]
mov eax, dword [esi + 4]
xor edx, ecx
mov ecx, dword [esi + 8]
mov dword [esi], edx
mov edx, dword [edi + 0x74]
xor eax, edx
mov dword [esi + 4], eax
mov eax, dword [edi + 0x78]
xor ecx, eax
mov eax, dword [esi + 0xc]
mov dword [esi + 8], ecx
mov ecx, dword [edi + 0x7c]
xor eax, ecx
push str.cw
push esi
mov dword [esi + 0xc], eax
call fcn.00412f30
push esi
call fcn.00412ff0
mov edx, dword [edi + 0x80]
mov eax, dword [esi]
mov ecx, dword [esi + 4]
xor eax, edx
mov edx, dword [esi + 8]
mov dword [esi], eax
mov eax, dword [edi + 0x84]
push str.cw
xor ecx, eax
push esi
mov dword [esi + 4], ecx
mov ecx, dword [edi + 0x88]
xor edx, ecx
mov ecx, dword [esi + 0xc]
mov dword [esi + 8], edx
mov edx, dword [edi + 0x8c]
xor ecx, edx
mov dword [esi + 0xc], ecx
call fcn.00412f30
push esi
call fcn.00412ff0
mov eax, dword [edi + 0x90]
mov ecx, dword [esi]
mov edx, dword [esi + 4]
xor ecx, eax
mov eax, dword [esi + 8]
mov dword [esi], ecx
mov ecx, dword [edi + 0x94]
push str.cw
xor edx, ecx
mov ecx, dword [esi + 0xc]
mov dword [esi + 4], edx
mov edx, dword [edi + 0x98]
xor eax, edx
push esi
mov dword [esi + 8], eax
mov eax, dword [edi + 0x9c]
xor ecx, eax
mov dword [esi + 0xc], ecx
call fcn.00412f30
mov ecx, dword [edi + 0xa0]
mov edx, dword [esi]
mov eax, dword [esi + 4]
xor edx, ecx
mov ecx, dword [esi + 8]
mov dword [esi], edx
mov edx, dword [edi + 0xa4]
add esp, 0x30
xor eax, edx
mov dword [esi + 4], eax
mov eax, dword [edi + 0xa8]
xor ecx, eax
mov eax, dword [esi + 0xc]
mov dword [esi + 8], ecx
mov ecx, dword [edi + 0xac]
xor eax, ecx
pop edi
mov dword [esi + 0xc], eax
xor eax, eax
pop esi
ret
pop edi
mov eax, 1
pop esi
ret