Function at 0x4595a0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov edi, eax
mov ebx, dword [edi]
test dword [ebx + 0xc], 0x4000000
movzx eax, byte [edi + 0x1ba]
mov dword [esp + 0x18], ebx
mov dword [esp + 0x2c], eax
je 0x459a9a
xor esi, esi
cmp dword [edi + 0xc], esi
jne 0x4595e9
mov eax, ebx
call fcn.0043a280
mov dword [edi + 0xc], eax
cmp eax, esi
je 0x4595e9
push 0x87
call fcn.0043a3e0
add esp, 4
mov edx, dword [esp + 0x3c]
mov ebp, dword [edx + 0x44]
mov dword [esp + 0x14], 0xfff0bdc0
cmp ebp, esi
je 0x459625
cmp dword [ebx + 4], esi
mov dword [esp + 0x14], esi
jle 0x459625
mov eax, dword [ebx + 8]
add eax, 0xc
jmp 0x459610
cmp dword [eax], ebp
je 0x459625
mov ecx, dword [esp + 0x14]
inc ecx
add eax, 0x10
cmp ecx, dword [ebx + 4]
mov dword [esp + 0x14], ecx
jl 0x459610
mov ecx, dword [esp + 0x14]
mov eax, dword [ebx + 8]
mov ebp, dword [edx + 0x24]
shl ecx, 4
mov ecx, dword [ecx + eax]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x10], ebp
cmp ebp, esi
je 0x4596cb
jmp 0x459654
mov ebp, dword [esp + 0x10]
cmp byte [edi + 0x1ba], 0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x20], esi
je 0x459680
mov edx, dword [esp + 0x28]
mov eax, dword [ebp + 8]
push edx
push eax
push ebx
call fcn.0044f830
add esp, 0xc
jmp 0x459733
mov esi, dword [edi]
cmp byte [esi + 0x7c], 0
mov ebp, dword [ebp + 8]
jne 0x4596e2
lea ecx, [edi + 8]
push ecx
call fcn.00461a10
add esp, 4
test eax, eax
je 0x4596e2
inc dword [edi + 0x40]
mov ebp, dword [esp + 0x10]
mov dword [edi + 4], eax
cmp dword [esp + 0x2c], 0
je 0x459a9a
cmp byte [ebx + 0x1e], 0
jne 0x459a9a
mov ebp, dword [ebp + 4]
xor esi, esi
mov dword [esp + 0x10], ebp
test ebp, ebp
jne 0x459650
mov edx, dword [esp + 0x3c]
mov ecx, dword [edx]
mov eax, ecx
cmp ecx, esi
jne 0x459863
xor ebp, ebp
mov dword [esp + 0x28], ebp
jmp 0x45987b
mov esi, dword [esp + 0x28]
mov edx, dword [edi]
push esi
push ebp
push edx
call fcn.0044f830
add esp, 0xc
mov dword [esp + 0x30], eax
test eax, eax
jne 0x45972f
push ebp
test esi, esi
je 0x459715
push esi
push str.no_such_table
push str._s:__s._s
call fcn.00422780
add esp, 0x10
jmp 0x459727
push str.no_such_table
push str._s:__s
call fcn.00422780
add esp, 0xc
mov eax, dword [esp + 0x30]
mov byte [edi + 0x12], 1
mov ebp, dword [esp + 0x10]
mov esi, eax
test esi, esi
je 0x4596a5
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x20]
push ecx
push ebp
push esi
push edi
call fcn.004581f0
add esp, 0x14
test eax, eax
jne 0x4596a5
mov ebx, dword [esp + 0x24]
test ebx, ebx
jne 0x45976d
mov edx, dword [ebp + 0x24]
mov dword [esp + 0x34], edx
lea ebx, [esp + 0x34]
mov eax, dword [esp + 0x10]
xor ebp, ebp
cmp dword [eax + 0x14], ebp
jle 0x4597dd
mov ecx, dword [ebx + ebp*4]
mov edx, dword [esp + 0x3c]
cmp ecx, dword [edx + 4]
jne 0x45978b
mov dword [ebx + ebp*4], 0xffffffff
mov eax, dword [esp + 0x18]
cmp dword [eax + 0x100], 0
je 0x4597d3
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4597a8
mov ecx, dword [eax + 8]
mov eax, dword [ecx + ebp*4]
jmp 0x4597ab
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x14]
lea edx, [eax + eax*2]
mov eax, dword [esi + 0xc]
mov eax, dword [eax + edx*8]
mov edx, dword [esi]
push ecx
push eax
push edx
mov eax, edi
call fcn.0044f030
xor ecx, ecx
add esp, 0xc
cmp eax, 2
sete cl
mov dword [esp + 0x20], ecx
mov edx, dword [esp + 0x10]
inc ebp
cmp ebp, dword [edx + 0x14]
jl 0x459778
mov eax, dword [esi]
mov ecx, dword [esi + 0x14]
mov ebp, dword [esp + 0x14]
push eax
push 0
push ecx
push ebp
mov eax, edi
call fcn.0044f260
mov eax, dword [esp + 0x50]
inc dword [edi + 0x44]
add esp, 0x10
test eax, eax
je 0x45981e
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edx
push 0xffffffffffffffff
push eax
mov eax, dword [esp + 0x1c]
push ebx
push eax
push ecx
push esi
push ebp
push edi
call fcn.00458450
add esp, 0x24
mov eax, dword [esp + 0x44]
test eax, eax
je 0x459844
mov edx, dword [esp + 0x20]
mov ecx, dword [esp + 0x1c]
push edx
push 1
push eax
mov eax, dword [esp + 0x1c]
push ebx
push eax
push ecx
push esi
push ebp
push edi
call fcn.00458450
add esp, 0x24
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x18]
push edx
push eax
call fcn.00420800
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
add esp, 8
jmp 0x4596ba
cmp byte [ecx], 0
je 0x45986e
inc eax
cmp byte [eax], 0
jne 0x459868
sub eax, ecx
and eax, 0x3fffffff
mov ebp, eax
mov dword [esp + 0x28], eax
mov esi, dword [edx + 0x44]
add esi, 0x34
xor eax, eax
mov dword [esp + 0x34], esi
cmp dword [esi + 0xc], eax
je 0x4598bf
mov edx, ebp
test ebp, ebp
jle 0x4598b5
movzx esi, byte [ecx]
movzx esi, byte [esi + 0x4cca90]
lea ebp, [eax*8]
xor esi, ebp
dec edx
xor eax, esi
inc ecx
test edx, edx
jg 0x459892
mov esi, dword [esp + 0x34]
mov ebp, dword [esp + 0x28]
xor edx, edx
div dword [esi]
mov eax, edx
mov edx, dword [esp + 0x3c]
mov edx, dword [edx]
push ebp
push edx
mov edx, eax
mov eax, esi
call fcn.00423720
add esp, 8
test eax, eax
je 0x459a9a
mov ebp, dword [eax + 8]
xor esi, esi
cmp ebp, esi
je 0x459a9a
cmp byte [ebp + 0x18], 0
mov dword [esp + 0x28], esi
mov dword [esp + 0x1c], esi
jne 0x459907
cmp dword [edi + 0x1a8], esi
jne 0x459907
cmp byte [edi + 0x158], 0
je 0x459a8f
mov eax, dword [esp + 0x3c]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x2c]
push edx
push ebp
push eax
push edi
call fcn.004581f0
add esp, 0x14
test eax, eax
je 0x45993d
cmp dword [esp + 0x2c], esi
je 0x459a9a
cmp byte [ebx + 0x1e], 0
jne 0x459a9a
jmp 0x459a8f
cmp byte [ebx + 0x1e], 0
jne 0x459a7f
cmp byte [ebx + 0xea], 0
je 0x45998c
mov ecx, 0x40
cmp cx, word [ebx + 0xe8]
ja 0x45998c
mov esi, dword [ebx + 0xf4]
test esi, esi
je 0x45998c
mov edx, dword [esi]
inc dword [ebx + 0xec]
mov eax, dword [ebx + 0xec]
cmp eax, dword [ebx + 0xf0]
mov dword [ebx + 0xf4], edx
jle 0x4599a0
mov dword [ebx + 0xf0], eax
jmp 0x4599a0
push 0x40
call fcn.004204a0
add esp, 4
test eax, eax
jne 0x45999e
mov byte [ebx + 0x1e], 1
mov esi, eax
test esi, esi
je 0x459a7f
push 0x40
push 0
push esi
call fcn.004a2540
mov eax, 1
mov word [esi + 2], ax
movsx ecx, word [esi]
add esp, 0xc
push ecx
push eax
push ebx
mov eax, esi
call fcn.00453360
add esp, 0xc
cmp byte [ebx + 0x1e], 0
mov esi, eax
je 0x4599e3
push esi
mov esi, ebx
call fcn.004535a0
jmp 0x459a7c
movsx eax, word [esi]
mov ebx, dword [esp + 0x28]
lea edx, [eax*8]
sub edx, eax
mov dword [esi + edx*8 - 0x2c], 0
mov dword [esi + edx*8 - 0x30], 0
lea eax, [esi + edx*8 - 0x30]
mov eax, dword [ebp]
mov dword [esi + 0x14], eax
mov ecx, dword [ebp]
mov edx, dword [ecx]
mov dword [esi + 0xc], edx
mov ecx, 1
add word [eax + 0x20], cx
mov eax, dword [edi + 0x44]
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x44]
add dword [edi + 0x44], ecx
test eax, eax
je 0x459a48
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x3c]
push 0xffffffffffffffff
push eax
push ecx
push ebp
push ebx
push edx
push esi
push edi
call fcn.00458c10
add esp, 0x20
mov eax, dword [esp + 0x40]
test eax, eax
je 0x459a69
mov ecx, dword [esp + 0x3c]
push 1
push eax
mov eax, dword [esp + 0x24]
push eax
push ebp
push ebx
push ecx
push esi
push edi
call fcn.00458c10
add esp, 0x20
mov dword [esi + 0xc], 0
push esi
mov esi, dword [esp + 0x1c]
call fcn.004535a0
mov ebx, esi
add esp, 4
mov edx, dword [esp + 0x1c]
push edx
push ebx
call fcn.00420800
add esp, 8
xor esi, esi
mov ebp, dword [ebp + 0xc]
cmp ebp, esi
jne 0x4598e4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret