Function at 0x4702b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54434e
mov eax, dword fs:[0]
push eax
sub esp, 0x7e0
mov eax, dword [0x58bea8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [str.DAME_SAVE_IMAGE]
mov edx, dword [0x54a43c]
xor esi, esi
mov ebx, ecx
mov ecx, dword [0x54a438]
mov dword [ebp - 0x20], eax
mov eax, dword [0x54a440]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x7a8], esi
mov dword [ebp - 0x7ac], esi
cmp dword [ebp + 0xc], esi
je 0x470423
cmp dword [ebx + 0x5a0], esi
je 0x470423
mov ecx, dword [ebx + 0xcdc]
call fcn.0047d270
push 0x30
lea ecx, [ebp - 0x7ec]
push esi
push ecx
mov edi, eax
call fcn.0052b220
mov ecx, dword [ebp + 8]
add esp, 0xc
lea eax, [ebp - 0x7ec]
push eax
push esi
add ecx, 0x7fe0
push ecx
lea edx, [ebp - 0xa0]
push edi
mov dword [ebp - 0x7ec], 0x30
mov dword [ebp - 0x7e8], 0x11
mov dword [ebp - 0x7e4], esi
mov dword [ebp - 0x7c8], edx
mov dword [ebp - 0x7c4], 0x100
call dword [0x547308]
push 1
mov ecx, ebx
call fcn.004153a0
push 0x834
call fcn.0052b63f
add esp, 4
mov dword [ebp - 0x7b0], eax
mov dword [ebp - 4], esi
cmp eax, esi
je 0x4703ba
push esi
mov ecx, eax
call fcn.0047b740
mov esi, eax
mov edi, dword [0x547218]
push 0x54a474
lea edx, [esi + 0x5a4]
push edx
mov dword [ebp - 4], 0xffffffff
call edi
lea eax, [ebp - 0xa0]
push eax
lea ecx, [esi + 0x634]
push ecx
call edi
push 0x54a454
lea edx, [esi + 0x734]
push edx
call edi
mov ecx, dword [ebx + 4]
mov eax, dword [esi]
mov edx, dword [ebx + 8]
mov eax, dword [eax + 0xc]
push ecx
push edx
mov ecx, esi
call eax
mov ecx, esi
mov edi, eax
call fcn.0047b770
push esi
call fcn.0052b2fa
add esp, 4
push 0
mov ecx, ebx
call fcn.004153a0
test edi, edi
je 0x47049f
mov esi, dword [ebp + 8]
cmp esi, 0x3b6
jae 0x470435
mov ecx, ebx
call fcn.00470240
push 0x1000
push 0
call dword [0x547224]
push esi
lea ecx, [ebx + 0x1510]
push ecx
push str._ssave_z3.dat
push eax
mov dword [ebp - 0x7b8], eax
call fcn.00405e10
mov eax, dword [ebp - 0x7b8]
add esp, 0x10
lea edx, [ebp - 0x7bc]
push edx
lea esi, [ebx + 0x33c4]
mov ecx, 0x1c1
lea edi, [ebp - 0x7a4]
push eax
rep movsd dword es:[edi], dword [esi]
call fcn.00407270
mov dword [ebp - 0x7b4], eax
test eax, eax
jne 0x4704a6
mov eax, dword [ebp - 0x7b8]
test eax, eax
je 0x47049f
push eax
call dword [0x547228]
xor eax, eax
jmp 0x470b13
mov esi, dword [ebp - 0x7b4]
mov ecx, dword [esi + 0x21c]
add ecx, 2
cmp ecx, dword [ebp - 0x7bc]
jne 0x47054b
lea edx, [ebp - 0x20]
push edx
call dword [0x54721c]
mov dword [ebp - 0x7b0], eax
mov eax, dword [esi + 0x230]
mov edi, 0x258
add eax, edi
cmp eax, edi
jbe 0x470523
mov al, byte [edi + esi]
mov edx, dword [ebp - 0x7a8]
movzx ecx, al
add word [ebp - 0x7ac], cx
mov cl, byte [ebp + edx - 0x20]
xor cl, al
lea eax, [edx + 1]
xor edx, edx
div dword [ebp - 0x7b0]
sub cl, 0x80
mov byte [edi + esi], cl
inc edi
mov dword [ebp - 0x7a8], edx
mov edx, dword [esi + 0x230]
add edx, 0x258
cmp edi, edx
jb 0x4704e2
mov eax, dword [esi + 0x21c]
mov cx, word [ebp - 0x7ac]
cmp word [esi + eax], cx
je 0x47054b
or dword [ebx + 0x2918], 4
push esi
call dword [0x547228]
xor eax, eax
jmp 0x470b13
mov edx, dword [ebx + 4]
push 0
push edx
call dword [0x547304]
mov eax, dword [ebx + 0x25bc]
test eax, eax
je 0x470572
push eax
call dword [0x547228]
mov dword [ebx + 0x25bc], 0
mov edi, dword [0x547224]
push 0x300000
push 0
call edi
mov dword [ebx + 0x25bc], eax
mov ecx, dword [esi + 0x230]
mov edx, dword [esi + 0x244]
push ecx
push edx
lea ecx, [esi + 0x258]
push ecx
push eax
call fcn.0045ad50
mov edx, dword [esi + 0x244]
add esp, 0x10
mov dword [ebx + 0x25c0], edx
cmp dword [esi + 0x234], 0
jbe 0x470617
mov eax, dword [ebx + 0x25c4]
test eax, eax
je 0x4705d5
push eax
call dword [0x547228]
mov dword [ebx + 0x25c4], 0
mov eax, dword [esi + 0x248]
push eax
push 0
call edi
mov dword [ebx + 0x25c4], eax
mov ecx, dword [esi + 0x234]
mov edx, dword [esi + 0x248]
push ecx
mov ecx, dword [esi + 0x230]
push edx
lea edx, [ecx + esi + 0x258]
push edx
push eax
call fcn.0045ad50
mov eax, dword [esi + 0x248]
add esp, 0x10
mov dword [ebx + 0x25c8], eax
mov esi, dword [ebp - 0x7b4]
mov ecx, dword [esi + 0x24c]
push ecx
push 0
call dword [0x547224]
mov edx, dword [esi + 0x238]
mov ecx, dword [esi + 0x24c]
push edx
push ecx
mov dword [ebp - 0x7b0], ecx
mov ecx, dword [esi + 0x234]
add ecx, dword [esi + 0x230]
mov dword [ebp - 0x7ac], eax
lea edx, [ecx + esi + 0x258]
push edx
push eax
call fcn.0045ad50
mov eax, dword [ebp - 0x7b4]
lea edi, [ebx + 0x25cc]
mov ecx, 0x96
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x210]
mov dword [ebx + 0x283c], ecx
mov edx, dword [eax + 0x214]
mov dword [ebx + 0x2840], edx
mov ecx, dword [eax + 0x218]
mov dword [ebx + 0x2844], ecx
xor ecx, ecx
mov dword [eax + 0x214], ecx
mov esi, dword [ebx + 0xc5c]
add esp, 0x10
mov dword [ebx + 0x27e0], ecx
mov dword [ebx + 0x2840], ecx
cmp esi, ecx
je 0x4706d2
mov ecx, esi
call fcn.00430200
push esi
call fcn.0052b2fa
add esp, 4
mov dword [ebx + 0xc5c], 0
mov ecx, dword [ebx + 0xc58]
xor esi, esi
call fcn.00477c50
mov ecx, dword [ebx + 0xc54]
call fcn.00475800
mov ecx, dword [ebx + 0xc54]
call fcn.00476dd0
push 0x138
lea edx, [ebx + 0x640]
push esi
push edx
call fcn.0052b220
mov edi, dword [ebx + 0xca8]
add esp, 0xc
cmp edi, esi
je 0x47072a
mov ecx, edi
call fcn.00421df0
push edi
call fcn.0052b2fa
add esp, 4
mov dword [ebx + 0xca8], esi
mov edi, dword [ebx + 0xcac]
cmp edi, esi
je 0x47074a
mov ecx, edi
call fcn.00445930
push edi
call fcn.0052b2fa
add esp, 4
mov dword [ebx + 0xcac], esi
mov edi, dword [ebx + 0xcb4]
cmp edi, esi
je 0x47076a
mov ecx, edi
call fcn.004460f0
push edi
call fcn.0052b2fa
add esp, 4
mov dword [ebx + 0xcb4], esi
mov edi, dword [ebx + 0xca4]
cmp edi, esi
je 0x47078a
mov ecx, edi
call fcn.00445900
push edi
call fcn.0052b2fa
add esp, 4
mov dword [ebx + 0xca4], esi
mov edi, dword [ebx + 0xcb0]
cmp edi, esi
je 0x4707aa
mov ecx, edi
call fcn.00447210
push edi
call fcn.0052b2fa
add esp, 4
mov dword [ebx + 0xcb0], esi
mov ecx, dword [ebx + 0x778]
call fcn.00418ab0
mov ecx, eax
call fcn.004437c0
mov ecx, dword [ebx + 0x778]
call fcn.00416ed0
mov ecx, eax
call fcn.004437c0
mov ecx, dword [ebx + 0x778]
call fcn.00422910
mov ecx, eax
call fcn.00444bb0
mov ecx, dword [ebx + 0x778]
call fcn.00446970
mov ecx, eax
call fcn.00444bb0
mov ecx, dword [ebx + 0xce0]
call fcn.00411f40
lea ecx, [ecx]
mov ecx, dword [ebx + 0x778]
push esi
call fcn.00420840
mov ecx, eax
call fcn.00418f50
inc esi
cmp esi, 2
jb 0x470800
mov ecx, dword [ebx + 0xc10]
call fcn.00453130
lea edi, [ebx + 0xc60]
mov dword [ebp - 0x7a8], 3
mov esi, dword [edi]
test esi, esi
je 0x470850
mov ecx, esi
call fcn.00431290
push esi
call fcn.0052b2fa
add esp, 4
mov dword [edi], 0
add edi, 4
dec dword [ebp - 0x7a8]
jne 0x470834
lea esi, [ebx + 0xb7c]
mov dword [ebp - 0x7a8], 4
jmp 0x470870
mov edi, dword [esi]
test edi, edi
je 0x47088c
mov ecx, edi
call fcn.00437f80
push edi
call fcn.0052b2fa
add esp, 4
mov dword [esi], 0
add esi, 4
dec dword [ebp - 0x7a8]
jne 0x470870
lea edi, [ebx + 0xc6c]
mov dword [ebp - 0x7a8], 6
mov esi, dword [edi]
test esi, esi
je 0x4708c3
mov ecx, esi
call fcn.00404800
push esi
call fcn.0052b2fa
add esp, 4
mov dword [edi], 0
add edi, 4
dec dword [ebp - 0x7a8]
jne 0x4708a7
lea esi, [ebx + 0xc84]
mov dword [ebp - 0x7a8], 8
mov edi, edi
mov edi, dword [esi]
test edi, edi
je 0x4708fc
mov ecx, edi
call fcn.00404800
push edi
call fcn.0052b2fa
add esp, 4
mov dword [esi], 0
add esi, 4
dec dword [ebp - 0x7a8]
jne 0x4708e0
lea esi, [ebx + 0xb90]
mov dword [ebp - 0x7a8], 8
mov edi, dword [esi]
test edi, edi
je 0x470933
mov ecx, edi
call fcn.00452c20
push edi
call fcn.0052b2fa
add esp, 4
mov dword [esi], 0
add esi, 4
dec dword [ebp - 0x7a8]
jne 0x470917
lea edi, [ebx + 0xbb0]
mov dword [ebp - 0x7a8], 0xc
mov edi, edi
mov esi, dword [edi]
test esi, esi
je 0x47096c
mov ecx, esi
call fcn.00451820
push esi
call fcn.0052b2fa
add esp, 4
mov dword [edi], 0
add edi, 4
dec dword [ebp - 0x7a8]
jne 0x470950
lea esi, [ebx + 0x77c]
mov dword [ebp - 0x7a8], 0x100
mov edi, dword [esi]
test edi, edi
je 0x4709a3
mov ecx, edi
call fcn.004347a0
push edi
call fcn.0052b2fa
add esp, 4
mov dword [esi], 0
add esi, 4
dec dword [ebp - 0x7a8]
jne 0x470987
xor ecx, ecx
lea esi, [ebx + 0xc14]
mov dword [ebp - 0x7a8], 8
lea eax, [ecx + 1]
mov edi, dword [esi]
cmp edi, ecx
je 0x4709e6
mov ecx, edi
call fcn.00429c20
push edi
call fcn.0052b2fa
add esp, 4
mov dword [esi], 0
xor ecx, ecx
mov eax, 1
add esi, 4
sub dword [ebp - 0x7a8], eax
jne 0x4709c3
mov dword [ebx + 0x25a8], eax
mov dword [ebx + 0x293c], eax
mov eax, dword [ebp - 0x7b8]
mov dword [ebx + 0x5b8], ecx
mov dword [ebx + 0x5d8], ecx
mov dword [ebx + 0x2940], ecx
mov dword [ebx + 0x29c8], ecx
cmp eax, ecx
je 0x470a26
push eax
call dword [0x547228]
mov eax, dword [ebp - 0x7b4]
push eax
call dword [0x547228]
mov ecx, dword [ebp - 0x7b0]
mov edx, dword [ebp - 0x7ac]
push ecx
push edx
mov ecx, ebx
call fcn.0046f030
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebx + 0x25c0]
mov edx, dword [ebx + 0x25bc]
push eax
push ecx
push edx
mov ecx, ebx
call fcn.0045cb30
mov eax, dword [ebx + 4]
push 0
push eax
call dword [0x547304]
mov edi, 1
mov dword [ebx + 0x2938], edi
lea ecx, [ebp - 0x79c]
lea eax, [ebx + 0x33d0]
lea esi, [edi + 0x3f]
cmp dword [eax - 4], edi
jb 0x470a99
mov dword [eax], 0xffffffff
mov dword [eax - 8], 0
mov edx, dword [ecx]
cmp edx, edi
jb 0x470ac5
mov dword [eax - 4], edx
mov edx, dword [ecx + 4]
mov dword [eax], edx
mov edx, dword [ecx - 4]
mov dword [eax - 8], edx
mov edx, dword [ecx + 8]
mov dword [eax + 4], edx
mov edx, dword [ecx + 0xc]
mov dword [eax + 8], edx
mov edx, dword [ecx + 0x10]
mov dword [eax + 0xc], edx
mov edx, dword [ecx + 0x14]
mov dword [eax + 0x10], edx
add ecx, 0x1c
add eax, 0x1c
sub esi, edi
jne 0x470a87
push edi
lea eax, [ebx + 0x3ac8]
push eax
lea ecx, [ebx + 0x5a0]
push ecx
mov ecx, dword [ebx + 0xcdc]
mov dword [ebx + 0x36dc], esi
mov dword [ebx + 0x36e0], 0xffffffff
mov dword [ebx + 0x36d8], esi
call fcn.0047f410
call fcn.004076a0
push 0x1d
mov ecx, ebx
mov dword [ebx + 0x2944], esi
call fcn.0045b5c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0052b2eb
mov esp, ebp
pop ebp
ret 0xc