Function at 0x5a3190
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5cfa6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf0
push ebx
push esi
push edi
xor edi, edi
mov ebx, ecx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x68], edi
mov dword [esp + 0x6c], edi
mov dword [esp + 0x70], edi
push 8
lea ecx, [esp + 0x6c]
mov dword [esp + 0x108], edi
call fcn.00401030
mov eax, dword [ebx + 0x574]
mov esi, dword [esp + 0x68]
mov dword [esi], eax
mov ecx, dword [ebx + 0x578]
mov dword [esi + 4], ecx
mov ecx, dword [ebp + 8]
lea edx, [esp + 0x68]
push edx
add ecx, 0x48
push 0x682680
mov dword [esp + 0x2c], ecx
call fcn.00408950
lea ecx, [eax + 0x1c]
call fcn.00406ac0
mov dword [esp + 0x104], 0xffffffff
cmp esi, edi
je 0x5a3228
push esi
call fcn.0052d217
add esp, 4
mov esi, dword [ebx + 0x28]
mov edi, dword [ebp + 8]
sub esi, dword [ebx + 0x24]
add edi, 8
push 0x6826b8
mov ecx, edi
sar esi, 2
call fcn.004084f0
mov dword [eax + 0x1c], esi
mov eax, dword [ebx + 0x24]
cmp eax, dword [ebx + 0x28]
je 0x5a326b
mov ecx, dword [ebx + 0x28]
sub ecx, eax
sar ecx, 2
add ecx, ecx
add ecx, ecx
push ecx
mov ecx, dword [ebp + 8]
push eax
push 0x68269c
call fcn.004063e0
jmp 0x5a3279
mov ecx, dword [esp + 0x24]
push 0x68269c
call fcn.004088d0
mov esi, dword [ebx + 0x100]
sub esi, dword [ebx + 0xfc]
push 0x6827b4
mov ecx, edi
sar esi, 2
call fcn.004084f0
mov dword [eax + 0x1c], esi
mov eax, dword [ebx + 0xfc]
cmp eax, dword [ebx + 0x100]
je 0x5a32c5
mov ecx, dword [ebx + 0x100]
sub ecx, eax
sar ecx, 2
add ecx, ecx
add ecx, ecx
push ecx
mov ecx, dword [ebp + 8]
push eax
push 0x682798
call fcn.004063e0
jmp 0x5a32d3
mov ecx, dword [esp + 0x24]
push 0x682798
call fcn.004088d0
mov dword [esp + 0xc0], 0xf
mov dword [esp + 0xbc], 0
mov byte [esp + 0xac], 0
mov dword [esp + 0x104], 1
mov ecx, dword [ebx + 0x48]
sub ecx, dword [ebx + 0x44]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov esi, edx
shr esi, 0x1f
push 0x6826f0
mov ecx, edi
add esi, edx
call fcn.004084f0
mov dword [eax + 0x1c], esi
mov ecx, dword [ebx + 0x48]
sub ecx, dword [ebx + 0x44]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
xor edi, edi
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x10], edi
je 0x5a33e6
lea esp, [esp]
lea ecx, [esp + 0x10]
lea esi, [esp + 0x44]
call fcn.00408c90
mov esi, eax
mov edx, dword [esp + 0x20]
mov byte [esp + 0x104], 2
mov eax, dword [edx + 0x44]
lea ecx, [edi*8]
sub ecx, edi
lea ebx, [eax + ecx*4]
mov ecx, dword [ebp + 8]
push 0x6826d4
add ecx, 0x68
call fcn.00408b40
push esi
lea ecx, [eax + 0x44]
call fcn.004086f0
push 0xffffffffffffffff
push 0
push ebx
lea ecx, [eax + 0x1c]
call fcn.004018d0
mov byte [esp + 0x104], 1
cmp dword [esp + 0x58], 0x10
jb 0x5a33bc
mov ecx, dword [esp + 0x44]
push ecx
call fcn.0052d217
add esp, 4
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x48]
sub ecx, dword [eax + 0x44]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
inc edi
add eax, edx
mov dword [esp + 0x10], edi
cmp edi, eax
jb 0x5a3350
mov eax, dword [esp + 0x20]
mov ecx, dword [eax + 0x48]
sub ecx, dword [eax + 0x44]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x10], eax
jmp 0x5a3410
lea ecx, [esp + 0x10]
lea esi, [esp + 0x44]
call fcn.00408c90
mov esi, eax
mov ebx, dword [ebp + 8]
push 0x6826d4
lea ecx, [ebx + 0x68]
mov byte [esp + 0x108], 3
call fcn.00408b40
push esi
lea ecx, [esp + 0x64]
lea edi, [eax + 0x1c]
push ecx
lea ecx, [edi + 0x48]
call fcn.00408840
cmp dword [eax + 4], 0
mov edx, dword [eax]
mov dword [esp + 0x18], edx
jne 0x5a345b
mov byte [esp + 0xf], 0
jmp 0x5a347f
push esi
lea ecx, [edi + 0x48]
call fcn.00408950
mov eax, dword [eax + 0x1c]
push 0x1c
push eax
lea ecx, [esp + 0xb4]
push ecx
call fcn.0052d910
add esp, 0xc
mov byte [esp + 0xf], 1
mov byte [esp + 0x104], 1
cmp dword [esp + 0x58], 0x10
jb 0x5a349b
mov edx, dword [esp + 0x44]
push edx
call fcn.0052d217
add esp, 4
cmp byte [esp + 0xf], 0
je 0x5a35ae
lea ecx, [esp + 0x10]
lea esi, [esp + 0x44]
call fcn.00408c90
mov edi, eax
mov dword [esp + 0x18], edi
push 0x6826d4
lea ecx, [ebx + 0x68]
mov byte [esp + 0x108], 4
call fcn.00408b40
cmp dword [eax + 0x74], 0
lea esi, [eax + 0x1c]
je 0x5a3589
mov ecx, dword [edi + 0x14]
cmp ecx, 0x10
jb 0x5a34e7
mov eax, dword [edi]
jmp 0x5a34e9
mov eax, edi
mov edx, dword [edi + 0x10]
add edx, eax
cmp ecx, 0x10
jb 0x5a34fb
mov ecx, dword [edi]
mov dword [esp + 0x14], ecx
jmp 0x5a3501
mov ecx, edi
mov dword [esp + 0x14], edi
xor eax, eax
cmp dword [esp + 0x14], edx
je 0x5a3531
lea esp, [esp]
mov edi, eax
mov ebx, eax
shl edi, 6
shr ebx, 2
add edi, ebx
movsx ebx, byte [ecx]
lea edi, [edi + ebx - 0x61c88647]
inc ecx
xor eax, edi
cmp ecx, edx
jne 0x5a3510
mov edi, dword [esp + 0x18]
xor edx, edx
div dword [esi + 0x4c]
mov eax, dword [esi + 0x48]
push edi
lea ecx, [esi + 0x48]
lea ebx, [eax + edx*4]
push ebx
call fcn.0046ce20
mov ecx, dword [eax]
test ecx, ecx
je 0x5a3589
mov edx, dword [ecx]
push edx
push ecx
lea ecx, [esi + 0x48]
mov dword [eax], edx
call fcn.0040b550
sub dword [esi + 0x58], eax
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x58]
cmp ebx, eax
jne 0x5a3589
test ecx, ecx
je 0x5a357d
cmp dword [eax], 0
jne 0x5a3589
add eax, 4
mov dword [esi + 0x60], eax
cmp dword [eax], 0
je 0x5a3570
jmp 0x5a3589
mov edx, dword [esi + 0x4c]
mov eax, dword [esi + 0x48]
lea ecx, [eax + edx*4]
mov dword [esi + 0x60], ecx
mov byte [esp + 0x104], 1
cmp dword [esp + 0x58], 0x10
jb 0x5a35a5
mov edx, dword [esp + 0x44]
push edx
call fcn.0052d217
add esp, 4
inc dword [esp + 0x10]
jmp 0x5a3410
mov ebx, dword [esp + 0x20]
mov ecx, dword [ebx + 0x110]
sub ecx, dword [ebx + 0x10c]
mov eax, 0x92492493
imul ecx
add edx, ecx
mov ecx, dword [ebp + 8]
sar edx, 4
mov esi, edx
shr esi, 0x1f
push 0x6827ec
add ecx, 8
add esi, edx
call fcn.004084f0
mov dword [eax + 0x1c], esi
mov ecx, dword [ebx + 0x110]
sub ecx, dword [ebx + 0x10c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
xor edi, edi
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x14], edi
je 0x5a36e7
mov ecx, dword [ebp + 8]
add ecx, 0x28
mov dword [esp + 0x18], ecx
lea esp, [esp]
lea ecx, [esp + 0x14]
lea esi, [esp + 0x44]
call fcn.00408c90
mov ecx, eax
mov eax, 0x6827d0
lea esi, [esp + 0x28]
mov byte [esp + 0x104], 5
call fcn.00404f10
mov byte [esp + 0x104], 6
mov ecx, dword [ebx + 0x10c]
lea edx, [edi*8]
sub edx, edi
lea esi, [ecx + edx*4]
mov ecx, dword [esp + 0x18]
push eax
call fcn.004086f0
push 0xffffffffffffffff
push 0
push esi
lea ecx, [eax + 0x1c]
call fcn.004018d0
cmp dword [esp + 0x3c], 0x10
jb 0x5a368a
mov edx, dword [esp + 0x28]
push edx
call fcn.0052d217
add esp, 4
mov byte [esp + 0x104], 1
cmp dword [esp + 0x58], 0x10
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
jb 0x5a36bb
mov eax, dword [esp + 0x44]
push eax
call fcn.0052d217
add esp, 4
mov ecx, dword [ebx + 0x110]
sub ecx, dword [ebx + 0x10c]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
inc edi
add ecx, edx
mov dword [esp + 0x14], edi
cmp edi, ecx
jb 0x5a3620
mov ecx, dword [ebx + 0x110]
sub ecx, dword [ebx + 0x10c]
mov ebx, dword [esp + 0x24]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x10]
lea esi, [esp + 0x44]
xor edi, edi
call fcn.00408c90
mov ecx, eax
mov eax, 0x6827d0
lea esi, [esp + 0x28]
mov byte [esp + 0x104], 7
call fcn.00404f10
mov esi, eax
push esi
lea edx, [esp + 0x64]
push edx
mov ecx, ebx
mov byte [esp + 0x10c], 8
call fcn.00408840
mov ecx, dword [eax]
mov dword [esp + 0x18], ecx
cmp dword [eax + 4], edi
jne 0x5a375e
mov byte [esp + 0xf], 0
jmp 0x5a3781
push esi
mov ecx, ebx
call fcn.00408950
mov edx, dword [eax + 0x1c]
push 0x1c
push edx
lea eax, [esp + 0xb4]
push eax
call fcn.0052d910
add esp, 0xc
mov byte [esp + 0xf], 1
mov esi, 0x10
cmp dword [esp + 0x3c], esi
jb 0x5a3799
mov ecx, dword [esp + 0x28]
push ecx
call fcn.0052d217
add esp, 4
mov byte [esp + 0x104], 1
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], edi
mov byte [esp + 0x28], 0
cmp dword [esp + 0x58], esi
jb 0x5a37c5
mov edx, dword [esp + 0x44]
push edx
call fcn.0052d217
add esp, 4
cmp byte [esp + 0xf], 0
je 0x5a3909
lea ecx, [esp + 0x10]
lea esi, [esp + 0x44]
call fcn.00408c90
mov ecx, eax
mov eax, 0x6827d0
lea esi, [esp + 0x28]
mov byte [esp + 0x104], 9
call fcn.00404f10
mov esi, eax
mov dword [esp + 0x18], esi
mov byte [esp + 0x104], 0xa
cmp dword [ebx + 0x10], edi
je 0x5a38b8
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x5a3818
mov eax, dword [esi]
jmp 0x5a381a
mov eax, esi
mov edx, dword [esi + 0x10]
add edx, eax
cmp ecx, 0x10
jb 0x5a382c
mov ecx, dword [esi]
mov dword [esp + 0x14], ecx
jmp 0x5a3832
mov ecx, esi
mov dword [esp + 0x14], esi
xor eax, eax
cmp dword [esp + 0x14], edx
je 0x5a3861
lea ebx, [ebx]
mov esi, eax
mov edi, eax
shl esi, 6
shr edi, 2
add esi, edi
movsx edi, byte [ecx]
lea esi, [esi + edi - 0x61c88647]
inc ecx
xor eax, esi
cmp ecx, edx
jne 0x5a3840
mov esi, dword [esp + 0x18]
xor edx, edx
div dword [ebx + 4]
mov eax, dword [ebx]
push esi
mov ecx, ebx
lea edi, [eax + edx*4]
push edi
call fcn.0046ce20
mov ecx, dword [eax]
test ecx, ecx
je 0x5a38b8
mov edx, dword [ecx]
push edx
push ecx
mov ecx, ebx
mov dword [eax], edx
call fcn.0040b550
sub dword [ebx + 0x10], eax
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x10]
cmp edi, eax
jne 0x5a38b8
test ecx, ecx
je 0x5a38ad
cmp dword [eax], 0
jne 0x5a38b8
lea ecx, [ecx]
add eax, 4
mov dword [ebx + 0x18], eax
cmp dword [eax], 0
je 0x5a38a0
jmp 0x5a38b8
mov edx, dword [ebx + 4]
mov eax, dword [ebx]
lea ecx, [eax + edx*4]
mov dword [ebx + 0x18], ecx
mov esi, 0x10
cmp dword [esp + 0x3c], esi
jb 0x5a38d0
mov edx, dword [esp + 0x28]
push edx
call fcn.0052d217
add esp, 4
mov byte [esp + 0x104], 1
mov dword [esp + 0x3c], 0xf
mov dword [esp + 0x38], 0
mov byte [esp + 0x28], 0
cmp dword [esp + 0x58], esi
jb 0x5a3900
mov eax, dword [esp + 0x44]
push eax
call fcn.0052d217
add esp, 4
inc dword [esp + 0x10]
jmp 0x5a370e
mov esi, dword [esp + 0x20]
mov dword [esp + 0x10], edi
cmp dword [esi + 0xe4], edi
je 0x5a3d20
push 8
mov dword [esp + 0x2c], edi
call fcn.0052d4ce
add esp, 4
cmp eax, edi
je 0x5a3da7
mov dword [esp + 0x28], eax
xor ecx, ecx
mov dword [eax], ecx
xor edx, edx
mov dword [eax + 4], edx
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x28]
mov dword [edx], ecx
xor ecx, ecx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x34], edi
mov dword [esp + 0x38], ecx
mov byte [esp + 0x104], 0xb
cmp dword [esi + 0xe4], edi
je 0x5a3cb6
mov eax, esi
add eax, 0xd4
mov dword [esp + 0x24], eax
jmp 0x5a3980
mov edx, dword [esp + 0x24]
lea eax, [esp + 0xc8]
call fcn.00423cf0
lea esi, [esp + 0xd4]
call fcn.004077e0
mov ecx, dword [eax]
test ecx, ecx
je 0x5a39a4
mov ecx, dword [ecx]
mov eax, dword [eax + 8]
mov edx, dword [ecx + 8]
cmp edx, eax
ja 0x5a39b0
sub eax, edx
mov ecx, dword [ecx + 4]
mov edi, dword [ecx + eax*4]
mov ecx, dword [esp + 0x38]
lea edx, [ecx + 1]
cmp dword [esp + 0x30], edx
ja 0x5a39d1
lea eax, [esp + 0x28]
push eax
call fcn.00407980
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
lea esi, [ecx + edx]
cmp eax, esi
ja 0x5a39e2
sub esi, eax
mov eax, dword [esp + 0x2c]
cmp dword [eax + esi*4], 0
jne 0x5a3a09
push 0x10
call fcn.0052d4ce
add esp, 4
test eax, eax
je 0x5a3a94
mov ecx, dword [esp + 0x2c]
mov dword [ecx + esi*4], eax
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
mov eax, dword [edx + esi*4]
test eax, eax
je 0x5a3a2e
mov ecx, dword [edi]
mov dword [eax], ecx
mov edx, dword [edi + 4]
mov dword [eax + 4], edx
mov ecx, dword [edi + 8]
mov dword [eax + 8], ecx
mov edx, dword [edi + 0xc]
mov dword [eax + 0xc], edx
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x24]
mov eax, dword [edx + 0x10]
inc ecx
mov dword [esp + 0x38], ecx
test eax, eax
je 0x5a3a4b
dec eax
mov dword [edx + 0x10], eax
jne 0x5a3a4b
mov dword [edx + 0xc], 0
mov eax, dword [esp + 0x20]
cmp dword [eax + 0xe4], 0
jne 0x5a3980
test ecx, ecx
je 0x5a3cb6
jmp 0x5a3a70
lea eax, [esp + 0xd4]
lea edx, [esp + 0x28]
call fcn.00423cf0
lea esi, [esp + 0xc8]
call fcn.004077e0
mov ecx, dword [eax]
test ecx, ecx
jne 0x5a3ac4
jmp 0x5a3ac6
lea ecx, [esp + 0x18]
push ecx
lea ecx, [esp + 0x7c]
mov dword [esp + 0x1c], 0
call fcn.0052d2bb
push 0x666d40
lea edx, [esp + 0x7c]
push edx
mov dword [esp + 0x80], vtable.std::bad_alloc.0
call fcn.0052d54e
mov ecx, dword [ecx]
mov eax, dword [eax + 8]
mov edx, dword [ecx + 8]
cmp edx, eax
ja 0x5a3ad2
sub eax, edx
mov ecx, dword [ecx + 4]
mov edx, dword [ecx + eax*4]
mov esi, dword [esp + 0x24]
mov eax, dword [esi + 0x10]
inc eax
mov dword [esp + 0x18], edx
cmp dword [esi + 8], eax
ja 0x5a3aef
push esi
call fcn.00407980
mov edi, dword [esi + 0xc]
add edi, dword [esi + 0x10]
mov eax, dword [esi + 8]
cmp eax, edi
ja 0x5a3afe
sub edi, eax
mov ecx, dword [esi + 4]
cmp dword [ecx + edi*4], 0
jne 0x5a3b1f
push 0x10
call fcn.0052d4ce
add esp, 4
test eax, eax
je 0x5a3d77
mov edx, dword [esi + 4]
mov dword [edx + edi*4], eax
mov eax, dword [esi + 4]
mov edi, dword [eax + edi*4]
test edi, edi
je 0x5a3b43
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov dword [edi + 4], edx
mov ecx, dword [eax + 8]
mov dword [edi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [edi + 0xc], edx
mov eax, dword [esp + 0x10]
inc dword [esi + 0x10]
mov dword [esp + 0x18], eax
inc eax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x88]
push ecx
call fcn.0040deb0
add esp, 8
mov ecx, eax
mov eax, 0x68277c
lea esi, [esp + 0x44]
mov byte [esp + 0x104], 0xc
call fcn.00404f10
mov dword [esp + 0x18], eax
lea eax, [esp + 0xe0]
lea edx, [esp + 0x28]
mov byte [esp + 0x104], 0xd
call fcn.00423cf0
lea esi, [esp + 0xec]
call fcn.004077e0
mov ecx, dword [eax]
test ecx, ecx
je 0x5a3bb0
mov ecx, dword [ecx]
mov eax, dword [eax + 8]
mov edx, dword [ecx + 8]
cmp edx, eax
ja 0x5a3bbc
sub eax, edx
mov edx, dword [ecx + 4]
mov edi, dword [edx + eax*4]
xor eax, eax
mov dword [esp + 0x68], eax
mov dword [esp + 0x6c], eax
mov dword [esp + 0x70], eax
push 0x10
lea ecx, [esp + 0x6c]
mov byte [esp + 0x108], 0xe
call fcn.00401150
mov esi, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov eax, esi
sub eax, ecx
add eax, 0x10
je 0x5a3c00
push eax
push 0
push ecx
call fcn.0052e6e0
add esp, 0xc
mov ecx, dword [edi]
mov dword [esi], ecx
mov edx, dword [edi + 4]
mov dword [esi + 4], edx
lea eax, [esi + 0x10]
mov dword [esp + 0x6c], eax
mov eax, dword [edi + 8]
mov dword [esi + 8], eax
mov ecx, dword [edi + 0xc]
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x68]
push edx
mov dword [esi + 0xc], ecx
push eax
mov ecx, ebx
call fcn.00408950
lea ecx, [eax + 0x1c]
call fcn.00406ac0
test esi, esi
je 0x5a3c43
push esi
call fcn.0052d217
add esp, 4
xor esi, esi
mov edi, 0x10
mov dword [esp + 0x68], esi
mov dword [esp + 0x6c], esi
mov dword [esp + 0x70], esi
cmp dword [esp + 0x58], edi
jb 0x5a3c69
mov ecx, dword [esp + 0x44]
push ecx
call fcn.0052d217
add esp, 4
mov byte [esp + 0x104], 0xb
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], esi
mov byte [esp + 0x44], 0
cmp dword [esp + 0x98], edi
jb 0x5a3c9b
mov edx, dword [esp + 0x84]
push edx
call fcn.0052d217
add esp, 4
mov ecx, dword [esp + 0x38]
cmp ecx, esi
je 0x5a3cb6
dec ecx
mov dword [esp + 0x38], ecx
jne 0x5a3cae
mov dword [esp + 0x34], esi
cmp ecx, esi
jne 0x5a3a70
mov eax, dword [esp + 0x2c]
xor edi, edi
mov byte [esp + 0x104], 1
cmp ecx, edi
je 0x5a3cd7
dec ecx
jne 0x5a3ccf
mov dword [esp + 0x34], edi
cmp ecx, edi
jne 0x5a3cc8
mov dword [esp + 0x38], ecx
mov esi, dword [esp + 0x30]
cmp esi, edi
jbe 0x5a3cfa
nop
dec esi
cmp dword [eax + esi*4], edi
je 0x5a3cf6
mov eax, dword [eax + esi*4]
push eax
call fcn.0052d217
mov eax, dword [esp + 0x30]
add esp, 4
cmp esi, edi
ja 0x5a3ce0
cmp eax, edi
je 0x5a3d07
push eax
call fcn.0052d217
add esp, 4
mov edx, dword [esp + 0x28]
mov dword [esp + 0x30], edi
mov dword [esp + 0x2c], edi
push edx
call fcn.0052d217
add esp, 4
lea esp, [esp]
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x88]
push eax
call fcn.0040deb0
add esp, 8
mov ecx, eax
mov eax, 0x68277c
lea esi, [esp + 0x44]
mov byte [esp + 0x104], 0xf
call fcn.00404f10
mov esi, eax
push esi
lea ecx, [esp + 0x1c]
push ecx
mov ecx, ebx
mov byte [esp + 0x10c], 0x10
call fcn.00408840
cmp dword [eax + 4], 0
mov edx, dword [eax]
mov dword [esp + 0x60], edx
jne 0x5a3dd9
mov byte [esp + 0xf], 0
jmp 0x5a3de6
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x7c]
mov dword [esp + 0x18], 0
call fcn.0052d2bb
push 0x666d40
lea ecx, [esp + 0x7c]
push ecx
mov dword [esp + 0x80], vtable.std::bad_alloc.0
call fcn.0052d54e
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0xa4]
mov dword [esp + 0x64], edi
call fcn.0052d2bb
push 0x666d40
lea ecx, [esp + 0xa4]
push ecx
mov dword [esp + 0xa8], vtable.std::bad_alloc.0
call fcn.0052d54e
push esi
mov ecx, ebx
call fcn.00408950
mov byte [esp + 0xf], 1
mov esi, 0x10
cmp dword [esp + 0x58], esi
jb 0x5a3dfe
mov eax, dword [esp + 0x44]
push eax
call fcn.0052d217
add esp, 4
mov byte [esp + 0x104], 1
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
cmp dword [esp + 0x98], esi
jb 0x5a3e34
mov ecx, dword [esp + 0x84]
push ecx
call fcn.0052d217
add esp, 4
cmp byte [esp + 0xf], 0
je 0x5a3f79
mov eax, dword [esp + 0x10]
mov dword [esp + 0x60], eax
inc eax
lea edx, [esp + 0x60]
mov dword [esp + 0x10], eax
push edx
lea eax, [esp + 0x88]
push eax
call fcn.0040deb0
add esp, 8
mov ecx, eax
mov eax, 0x68277c
lea esi, [esp + 0x44]
mov byte [esp + 0x104], 0x11
call fcn.00404f10
mov esi, eax
mov dword [esp + 0x60], esi
mov byte [esp + 0x104], 0x12
cmp dword [ebx + 0x10], 0
je 0x5a3f2a
mov ecx, dword [esi + 0x14]
cmp ecx, 0x10
jb 0x5a3e9d
mov eax, dword [esi]
jmp 0x5a3e9f
mov eax, esi
mov edx, dword [esi + 0x10]
add edx, eax
cmp ecx, 0x10
jb 0x5a3ead
mov ecx, dword [esi]
jmp 0x5a3eaf
mov ecx, esi
xor eax, eax
cmp ecx, edx
je 0x5a3ed6
mov esi, eax
mov edi, eax
shl esi, 6
shr edi, 2
add esi, edi
movsx edi, byte [ecx]
lea esi, [esi + edi - 0x61c88647]
inc ecx
xor eax, esi
cmp ecx, edx
jne 0x5a3eb5
mov esi, dword [esp + 0x60]
xor edx, edx
div dword [ebx + 4]
mov ecx, dword [ebx]
push esi
lea edi, [ecx + edx*4]
push edi
mov ecx, ebx
call fcn.0046ce20
mov ecx, dword [eax]
test ecx, ecx
je 0x5a3f2a
mov edx, dword [ecx]
push edx
push ecx
mov ecx, ebx
mov dword [eax], edx
call fcn.0040b550
sub dword [ebx + 0x10], eax
mov eax, dword [ebx + 0x18]
mov ecx, dword [ebx + 0x10]
cmp edi, eax
jne 0x5a3f2a
test ecx, ecx
je 0x5a3f1f
cmp dword [eax], 0
jne 0x5a3f2a
add eax, 4
mov dword [ebx + 0x18], eax
cmp dword [eax], 0
je 0x5a3f12
jmp 0x5a3f2a
mov eax, dword [ebx + 4]
mov ecx, dword [ebx]
lea edx, [ecx + eax*4]
mov dword [ebx + 0x18], edx
mov esi, 0x10
cmp dword [esp + 0x58], esi
jb 0x5a3f42
mov eax, dword [esp + 0x44]
push eax
call fcn.0052d217
add esp, 4
mov byte [esp + 0x104], 1
mov dword [esp + 0x58], 0xf
mov dword [esp + 0x54], 0
mov byte [esp + 0x44], 0
cmp dword [esp + 0x98], esi
jb 0x5a3d20
mov ecx, dword [esp + 0x84]
push ecx
jmp 0x5a3d14
cmp dword [esp + 0xc0], esi
jb 0x5a3f92
mov edx, dword [esp + 0xac]
push edx
call fcn.0052d217
add esp, 4
mov ecx, dword [esp + 0xfc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4