Function at 0x5858f4
Capabilities:
Encode data using base64
Resolve function by parsing pe exports

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov ebp, eax
mov dword [esp + 0x1c], edx
mov dword [esp + 0x38], ecx
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
mov edx, dword [esp + 0x70]
mov dword [esp], edx
xor ecx, ecx
mov edx, 0x3d
mov eax, ebp
call fcn.00582ae8
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x586610
mov ebx, dword [ebp + 0x20]
mov ecx, dword [esp + 0x70]
mov dword [esp + 0x18], ecx
xor eax, eax
mov esi, dword [esp + 0x74]
add esi, 0xc
mov dword [esp + 0x24], esi
lea edx, [ebp + 0x38]
mov dword [esp + 0x40], edx
cmp ebx, 0x7c
je 0x5859ba
lea esi, [esi]
cmp dword [esp + 0x1c], ebx
je 0x5859ba
cmp ebx, 0x65
je 0x5859ba
test eax, eax
je 0x585991
mov eax, dword [ebp + 0x60]
call fcn.005818dc
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x586610
mov eax, dword [ebp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
call fcn.00581f50
mov ebx, dword [ebp + 0x20]
lea eax, [ebx - 0x24]
cmp eax, 0x57
jbe switch.0x005859fc
mov dword [ebp + 0x20], 0x65
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x5864ac
mov ebx, 0x65
mov eax, 1
cmp ebx, 0x7c
jne 0x585958
test eax, eax
jne 0x5859ee
mov ecx, dword [esp + 0x78]
test ecx, ecx
jne 0x5859d0
mov eax, dword [ebp]
or dword [eax + 8], 0x100
mov eax, dword [ebp + 0x60]
mov edx, dword [esp + 0x74]
mov dword [esp + 4], edx
mov ecx, dword [esp + 0x70]
mov dword [esp], ecx
xor ecx, ecx
mov edx, 0x6e
call fcn.005819fc
mov eax, dword [esp + 0x28]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
jmp dword [eax*4 + 0x61fe20]
mov eax, dword [ebp + 0x18]
and eax, 3
dec eax
jne 0x586488
mov eax, dword [ebp]
or dword [eax + 8], 0x20
movzx edx, word [ebp + 0x24]
mov eax, dword [esp + 0x74]
mov dword [esp], eax
mov ecx, dword [esp + 0x18]
mov eax, ebp
call fcn.00584518
mov edx, dword [ebp + 0x64]
mov eax, dword [ebp + 0x60]
call fcn.00581c90
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x585a71
mov ebx, dword [ebp + 0x20]
jmp 0x5859b0
test byte [ebp + 0x18], 0x40
jne 0x5864c0
mov ecx, 0xffffffff
mov edx, dword [ebp + 0x64]
mov eax, dword [ebp + 0x60]
mov esi, dword [esp + 0x74]
mov dword [esp + 4], esi
mov esi, dword [esp + 0x18]
mov dword [esp], esi
call fcn.00585034
mov eax, ebp
call fcn.005833e0
mov dword [esp + 0x2c], 0
xor edi, edi
mov eax, dword [ebp + 0x20]
cmp eax, 0x2b
je 0x586590
jg 0x5863cc
cmp eax, 0x2a
jne 0x5863de
cmp word [ebp + 0x24], 1
sbb esi, esi
not esi
add esi, 2
mov dword [esp + 0x20], esi
mov eax, ebp
call fcn.005833e0
mov dword [esp + 0x34], 0x100
mov dword [esp + 0x30], 0
mov ecx, dword [esp + 0x28]
mov al, byte [ecx + 1]
test edi, edi
jne 0x586405
xor edx, edx
cmp ebx, 0x28
jne 0x586412
nop
test edi, edi
je 0x5866c0
mov eax, dword [ebp + 0x60]
call fcn.005818dc
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x60]
call fcn.005818dc
mov esi, eax
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x585a40
mov edx, dword [esp + 0x18]
add edx, 0x14
mov eax, dword [ebp + 0x60]
mov ecx, dword [esp + 0x3c]
call fcn.00581fa8
mov eax, dword [ebp + 0x60]
mov ecx, esi
mov edx, dword [esp + 0x24]
call fcn.00581f50
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x585a40
mov eax, dword [esp + 0x3c]
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], esi
mov eax, dword [ebp + 0x60]
call fcn.005818dc
mov esi, eax
mov eax, dword [ebp + 0x60]
call fcn.005818dc
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x585a40
mov eax, dword [ebp + 0x60]
mov dword [esp + 4], esi
mov edx, dword [esp + 0x18]
mov dword [esp], edx
xor ecx, ecx
mov edx, 0x6e
call fcn.005819fc
mov eax, dword [ebp + 0x60]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 4], ecx
mov edx, dword [esp + 0x18]
mov dword [esp], edx
xor ecx, ecx
mov edx, 0x6e
call fcn.005819fc
mov ecx, dword [ebp + 0x14]
test ecx, ecx
jne 0x585a40
mov cl, byte [edi + 1]
mov byte [esp + 0x48], cl
movsx edx, cl
or edx, dword [esp + 0x20]
lea eax, [edx*4]
lea ecx, [edx + edx]
and eax, ecx
and eax, 4
and edx, 0xfffffffc
or eax, edx
mov edx, dword [esp + 0x20]
test edx, edx
jne 0x586879
mov cl, byte [esp + 0x48]
and ecx, 3
or ecx, eax
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
mov edx, 0x2e
mov eax, ebp
call fcn.00582ae8
mov dword [esp + 0x44], eax
mov dword [eax + 0xc], edi
mov eax, dword [esp + 0x28]
movsx ecx, byte [eax + 1]
mov eax, dword [esp + 0x18]
mov dword [esp + 4], eax
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x14]
mov dword [esp], eax
mov edx, 0x3d
mov eax, ebp
call fcn.00582ae8
mov ecx, dword [esp + 0x28]
mov dword [ecx + 0xc], eax
mov byte [ecx], 0x2e
mov eax, dword [esp + 0x44]
mov dword [ecx + 0x10], eax
cmp ebx, 0x62
je 0x586abd
mov eax, dword [esp + 0x30]
test eax, eax
je 0x5868cd
mov ecx, dword [esp + 0x44]
add ecx, 0xc
mov dword [esp + 0x2c], ecx
cmp dword [esp + 0x30], 1
jne 0x585c6d
cmp dword [esp + 0x34], 1
je 0x586b43
mov dword [esp + 0x30], 1
mov edx, dword [edi + 0x14]
mov ecx, dword [edi + 0x18]
mov eax, dword [ebp + 0x60]
mov dword [esp + 4], edx
mov dword [esp], esi
call fcn.00582154
cmp dword [esp + 0x34], 0x100
je 0x585c90
dec dword [esp + 0x34]
mov ecx, dword [edi + 0x14]
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
dec eax
mov dword [esp], eax
mov edx, esi
mov eax, ebp
call fcn.005855e8
mov bl, byte [edi + 1]
movsx edx, bl
or edx, dword [esp + 0x20]
lea eax, [edx*4]
lea ecx, [edx + edx]
and eax, ecx
and eax, 4
and edx, 0xfffffffc
or eax, edx
mov edx, dword [esp + 0x20]
test edx, edx
jne 0x585cdb
mov edx, ebx
and edx, 3
mov dword [esp + 0x20], edx
or eax, dword [esp + 0x20]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x18]
mov dword [esp + 4], eax
mov dword [esp], esi
mov ecx, dword [esp + 0x20]
mov edx, 0x2e
mov eax, ebp
call fcn.00582ae8
mov ebx, eax
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x585a40
mov ecx, dword [esp + 0x20]
and ecx, 3
mov eax, dword [edi + 0x14]
mov dword [esp + 4], eax
mov dword [esp], esi
mov edx, 0x3d
mov eax, ebp
call fcn.00582ae8
mov dword [ebx + 0xc], eax
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x585a40
mov dword [ebx + 0x10], edi
mov esi, dword [esp + 0x2c]
mov dword [esi], ebx
mov eax, dword [esp + 0x28]
mov ebx, dword [eax + 0x10]
mov eax, dword [ebp + 0x20]
cmp eax, 0x7c
je 0x586a73
cmp dword [esp + 0x1c], eax
je 0x586a73
cmp eax, 0x65
je 0x586a73
mov dword [esp + 8], 1
mov edx, dword [esp + 0x74]
mov dword [esp + 4], edx
mov eax, dword [edi + 0x18]
mov dword [esp], eax
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x1c]
mov eax, ebp
call fcn.005858f4
mov dword [ebx + 0x10], eax
mov dl, byte [ebx + 1]
movzx esi, byte [eax + 1]
mov ecx, esi
or ecx, edx
mov edi, 0xfffffffc
and edi, ecx
movsx ecx, cl
lea eax, [ecx*4]
shl ecx, 1
and eax, ecx
and eax, 4
mov cl, dl
and ecx, 3
jne 0x585dbb
mov ecx, esi
and ecx, 3
or edx, edi
or edx, eax
or edx, ecx
mov byte [ebx + 1], dl
mov ecx, dword [esp + 0x28]
mov al, byte [ecx + 1]
mov bl, dl
or ebx, eax
mov esi, 0xfffffffc
and esi, ebx
movsx ebx, bl
lea ecx, [ebx*4]
shl ebx, 1
and ecx, ebx
and ecx, 4
mov bl, al
and ebx, 3
jne 0x585df3
mov bl, dl
and ebx, 3
or eax, esi
or eax, ecx
or eax, ebx
mov esi, dword [esp + 0x28]
mov byte [esi + 1], al
jmp 0x585a40
cmp dword [esp + 0x38], 0x4c
je 0x586640
mov eax, dword [ebp + 0x14]
movzx edx, word [ebp + 0x24]
cmp edx, dword [ebp + 0x34]
jb 0x58651c
mov dword [ebp + 0x20], 0x65
test eax, eax
jne 0x585e37
mov dword [ebp + 0x14], 6
mov al, 6
mov ecx, dword [ebp + 0x30]
mov edx, dword [ecx + edx*4]
test edx, edx
jne 0x585a40
mov dword [ebp + 0x20], 0x65
test eax, eax
jne 0x5859ab
mov dword [ebp + 0x14], 6
jmp 0x5859ab
mov eax, ebp
call fcn.00584f10
mov eax, dword [ebp + 0x60]
call fcn.005818dc
mov ebx, eax
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x585a40
mov dword [esp], eax
mov ecx, dword [esp + 0x18]
mov edx, 0x72
mov eax, ebp
call fcn.00581c14
mov eax, dword [ebp + 0x6c]
mov edx, dword [eax + 0x14]
mov eax, dword [ebp + 0x60]
mov dword [esp + 4], 0x61
mov ecx, dword [esp + 0x74]
mov dword [esp], ecx
mov ecx, ebx
call fcn.00582114
mov ebx, dword [ebp + 0x20]
jmp 0x5859b0
mov dword [ebp + 0x20], 0x65
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x5859ab
mov dword [ebp + 0x14], 0xd
mov ebx, 0x65
jmp 0x5859b0
cmp dword [esp + 0x38], 0x4c
je 0x586624
movzx eax, word [ebp + 0x24]
mov dword [esp + 0x20], eax
test eax, eax
je 0x5866ac
mov edx, dword [ebp + 0x2c]
inc edx
mov dword [esp + 0x2c], edx
mov dword [ebp + 0x2c], edx
cmp edx, dword [ebp + 0x34]
jae 0x5866ef
mov eax, ebp
call fcn.005833e0
mov eax, dword [ebp + 0x60]
call fcn.005818dc
mov esi, eax
mov eax, dword [ebp + 0x60]
call fcn.005818dc
mov edi, eax
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x585a40
mov eax, dword [ebp + 0x60]
mov dword [esp + 4], esi
mov edx, dword [esp + 0x18]
mov dword [esp], edx
xor ecx, ecx
mov edx, 0x6e
call fcn.005819fc
mov eax, dword [ebp + 0x60]
mov ecx, dword [esp + 0x74]
mov dword [esp + 4], ecx
mov dword [esp], edi
xor ecx, ecx
mov edx, 0x6e
call fcn.005819fc
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x585a40
mov dword [esp + 4], edi
mov dword [esp], esi
mov ecx, 0x70
mov edx, 0x29
mov eax, ebp
call fcn.00586b6c
mov edi, eax
mov eax, ebp
call fcn.005833e0
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x585a40
mov eax, dword [esp + 0x20]
test eax, eax
je 0x585a82
mov eax, dword [ebp + 0x30]
mov esi, dword [esp + 0x2c]
mov dword [eax + esi*4], edi
mov al, byte [edi + 1]
or eax, 8
movsx ecx, al
mov eax, dword [esp + 0x74]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
mov edx, 0x28
mov eax, ebp
call fcn.00582ae8
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x585a40
mov edx, dword [esp + 0x2c]
mov dword [eax + 4], edx
mov dword [eax + 0xc], edi
mov edi, eax
jmp 0x585a82
mov eax, dword [ebp + 0x60]
mov ecx, dword [esp + 0x74]
mov dword [esp + 4], ecx
mov esi, dword [esp + 0x18]
mov dword [esp], esi
mov ecx, 1
mov edx, 0x24
call fcn.005819fc
test byte [ebp + 0x18], 0x80
jne 0x5864cc
mov eax, ebp
call fcn.005833e0
mov ebx, dword [ebp + 0x20]
jmp 0x5859b0
mov eax, ebp
call fcn.00584f10
mov eax, dword [ebp + 0x60]
call fcn.005818dc
mov ebx, eax
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x585a40
mov dword [esp], eax
mov ecx, dword [esp + 0x18]
mov edx, 0x72
mov eax, ebp
call fcn.00581c14
mov eax, dword [ebp + 0x6c]
mov edx, dword [eax + 0x14]
mov eax, dword [ebp + 0x60]
mov dword [esp + 4], 0x61
mov ecx, dword [esp + 0x74]
mov dword [esp], ecx
mov ecx, ebx
call fcn.00582114
jmp 0x586243
mov eax, ebp
call fcn.00584f10
mov eax, dword [ebp + 0x60]
call fcn.005818dc
mov ebx, eax
mov edx, dword [ebp + 0x14]
test edx, edx
jne 0x585a40
mov eax, dword [ebp + 0x6c]
mov edx, dword [eax + 0x14]
mov eax, dword [ebp + 0x60]
mov dword [esp + 4], 0x72
mov dword [esp], ebx
mov ecx, dword [esp + 0x18]
call fcn.00582114
mov eax, dword [ebp + 0x6c]
mov edx, dword [eax + 0x14]
mov eax, dword [ebp + 0x60]
mov dword [esp + 4], 0x61
mov ecx, dword [esp + 0x74]
mov dword [esp], ecx
mov ecx, ebx
call fcn.00582114
mov eax, dword [ebp + 0x60]
call fcn.005818dc
mov ebx, eax
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x585a40
mov dword [esp], ebx
mov ecx, dword [esp + 0x18]
mov edx, 0x72
mov eax, ebp
call fcn.00581c14
jmp 0x586275
movzx edi, word [ebp + 0x24]
mov eax, ebp
call fcn.005833e0
mov eax, dword [ebp + 0x60]
call fcn.005818dc
mov esi, eax
mov eax, dword [ebp + 0x60]
call fcn.005818dc
mov ebx, eax
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x585a40
mov dword [esp + 4], ebx
mov dword [esp], esi
mov ecx, 0x4c
mov edx, 0x29
mov eax, ebp
call fcn.00586b6c
mov edx, eax
mov eax, ebp
call fcn.00580c24
mov eax, ebp
call fcn.005833e0
mov eax, dword [ebp + 0x8c]
test eax, eax
je 0x586684
inc eax
mov edx, eax
shl edx, 6
lea eax, [edx + eax*4]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x88]
mov dword [esp], eax
call fcn.004ed8a4
mov dword [ebp + 0x88], eax
mov ecx, dword [ebp + 0x8c]
lea edx, [ecx + 1]
mov dword [ebp + 0x8c], edx
test eax, eax
je 0x58685b
mov edx, ecx
shl edx, 6
lea edx, [edx + ecx*4]
add eax, edx
mov dword [eax + 0x14], esi
mov dword [eax + 0x18], ebx
mov dword [eax + 4], edi
mov dword [eax + 0x1c], 0
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x585a40
mov eax, dword [ebp + 0x60]
mov edx, dword [esp + 0x74]
mov dword [esp + 4], edx
mov esi, dword [esp + 0x18]
mov dword [esp], esi
mov edx, 0x4c
call fcn.005819fc
mov ebx, dword [ebp + 0x20]
jmp 0x5859b0
mov eax, dword [ebp + 0x60]
mov ecx, dword [esp + 0x74]
mov dword [esp + 4], ecx
mov esi, dword [esp + 0x18]
mov dword [esp], esi
mov ecx, 1
mov edx, 0x5e
call fcn.005819fc
mov eax, dword [ebp + 0x60]
mov edx, dword [esp + 0x74]
mov dword [esp + 4], edx
mov dword [esp], esi
xor ecx, ecx
mov edx, 0x5e
call fcn.005819fc
mov eax, ebp
call fcn.005833e0
mov ebx, dword [ebp + 0x20]
jmp 0x5859b0
mov eax, ebp
call fcn.00584f10
mov eax, dword [ebp + 0x60]
call fcn.005818dc
mov ebx, eax
mov ecx, dword [ebp + 0x14]
test ecx, ecx
jne 0x585a40
mov eax, dword [ebp + 0x6c]
mov edx, dword [eax + 0x14]
mov eax, dword [ebp + 0x60]
mov dword [esp + 4], 0x72
mov dword [esp], ebx
mov ecx, dword [esp + 0x18]
call fcn.00582114
mov esi, dword [esp + 0x74]
mov dword [esp], esi
mov ecx, ebx
mov edx, 0x61
mov eax, ebp
call fcn.00581c14
mov ebx, dword [ebp + 0x20]
jmp 0x5859b0
cmp word [ebp + 0x24], 1
je 0x586660
mov eax, dword [ebp + 0x60]
call fcn.005818dc
mov esi, eax
mov eax, dword [ebp + 0x60]
call fcn.005818dc
mov edi, eax
mov ecx, dword [ebp + 0x14]
test ecx, ecx
jne 0x585a71
mov ecx, eax
mov edx, esi
mov eax, ebp
call fcn.00584570
test byte [ebp + 0x18], 0x40
jne 0x58679e
mov edx, dword [ebp + 0x14]
test edx, edx
jne 0x585a71
mov edx, dword [ebp + 0x64]
mov eax, dword [ebp + 0x60]
mov ecx, dword [esp + 0x74]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x18]
mov dword [esp + 4], ecx
mov dword [esp], esi
mov ecx, 0x70
call fcn.00581b80
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x585a71
mov eax, dword [ebp + 0x60]
mov edx, esi
call fcn.00581594
mov eax, dword [ebp + 0x60]
mov edx, edi
call fcn.00580adc
jmp 0x585a71
mov eax, dword [ebp + 0x60]
mov ecx, dword [esp + 0x74]
mov dword [esp + 4], ecx
mov esi, dword [esp + 0x18]
mov dword [esp], esi
mov ecx, 1
mov edx, 0x24
call fcn.005819fc
mov eax, dword [ebp + 0x60]
mov edx, dword [esp + 0x74]
mov dword [esp + 4], edx
mov dword [esp], esi
xor ecx, ecx
mov edx, 0x24
call fcn.005819fc
mov eax, ebp
call fcn.005833e0
mov ebx, dword [ebp + 0x20]
jmp 0x5859b0
mov eax, dword [ebp + 0x60]
mov ecx, dword [esp + 0x74]
mov dword [esp + 4], ecx
mov esi, dword [esp + 0x18]
mov dword [esp], esi
mov ecx, 1
mov edx, 0x5e
call fcn.005819fc
test byte [ebp + 0x18], 0x80
je 0x58601f
movsx ecx, word [ebp + 0x68]
mov eax, dword [ebp + 0x60]
mov edx, dword [esp + 0x74]
mov dword [esp + 4], edx
mov dword [esp], esi
mov edx, 0x72
call fcn.005819fc
mov eax, ebp
call fcn.005833e0
mov ebx, dword [ebp + 0x20]
jmp 0x5859b0
cmp eax, 0x3f
je 0x5864f8
cmp eax, 0x7b
je 0x5865b4
mov dword [esp + 0x20], 0
mov dword [esp + 0x34], 1
mov dword [esp + 0x30], 1
mov ecx, dword [esp + 0x28]
mov al, byte [ecx + 1]
test edi, edi
je 0x585ad3
movsx edx, byte [edi + 1]
cmp ebx, 0x28
je 0x585ae0
cmp ebx, 0x62
je 0x585ae0
movsx esi, al
or esi, dword [esp + 0x20]
or esi, edx
lea eax, [esi*4]
lea edx, [esi + esi]
and eax, edx
and eax, 4
mov edx, esi
and edx, 0x1c
or edx, eax
jne 0x585ae0
cmp dword [esp + 0x30], 1
je 0x586674
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x18]
mov eax, ebp
call fcn.005855e8
test edi, edi
je 0x586476
mov edx, edi
mov eax, ebp
call fcn.00580c24
mov edx, esi
mov eax, dword [esp + 0x28]
mov byte [eax + 1], dl
mov ebx, dword [ebp + 0x20]
jmp 0x5859b0
mov dword [ebp + 0x20], 0x65
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x5859ab
mov dword [ebp + 0x14], 8
mov ebx, 0x65
jmp 0x5859b0
mov dword [ebp + 0x14], 0xf
mov ebx, 0x65
jmp 0x5859b0
movsx ecx, word [ebp + 0x68]
jmp 0x585a57
movsx ecx, word [ebp + 0x68]
mov eax, dword [ebp + 0x60]
mov edx, dword [esp + 0x74]
mov dword [esp + 4], edx
mov dword [esp], esi
mov edx, 0x61
call fcn.005819fc
mov eax, ebp
call fcn.005833e0
mov ebx, dword [ebp + 0x20]
jmp 0x5859b0
cmp word [ebp + 0x24], 1
sbb esi, esi
not esi
add esi, 2
mov dword [esp + 0x20], esi
mov eax, ebp
call fcn.005833e0
mov dword [esp + 0x34], 1
jmp 0x585abc
mov ecx, dword [ebp + 0x30]
mov ecx, dword [ecx + edx*4]
test ecx, ecx
je 0x585e45
test eax, eax
jne 0x585a40
mov ecx, dword [esp + 0x74]
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x18]
mov dword [esp], eax
mov ecx, 0x10
mov edx, 0x62
mov eax, ebp
call fcn.00582ae8
mov edi, eax
movzx edx, word [ebp + 0x24]
mov dword [esp + 0x2c], edx
mov dword [eax + 4], edx
mov eax, dword [ebp + 0x60]
mov ecx, dword [esp + 0x74]
mov dword [esp + 4], ecx
mov esi, dword [esp + 0x18]
mov dword [esp], esi
xor ecx, ecx
mov edx, 0x6e
call fcn.005819fc
mov eax, ebp
call fcn.005833e0
mov eax, dword [ebp + 0x20]
cmp eax, 0x2b
jne 0x585a8e
cmp word [ebp + 0x24], 1
sbb esi, esi
not esi
add esi, 2
mov dword [esp + 0x20], esi
mov eax, ebp
call fcn.005833e0
mov dword [esp + 0x34], 0x100
jmp 0x5863ee
mov eax, ebp
call fcn.005833e0
mov eax, ebp
call fcn.0058415c
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0x20]
cmp eax, 0x2c
je 0x586754
mov edx, dword [esp + 0x30]
mov dword [esp + 0x34], edx
mov dword [esp + 0x20], 0
cmp eax, 0x7d
je 0x5867bb
mov dword [ebp + 0x20], 0x65
mov edx, dword [ebp + 0x14]
test edx, edx
jne 0x5859ab
mov dword [ebp + 0x14], 0xa
mov ebx, 0x65
jmp 0x5859b0
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x28]
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 0x20], 0
mov ebx, 0x70
mov dword [esp + 0x2c], 0
jmp 0x585f0b
mov dword [ebp + 0x20], 0x65
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x585e16
mov dword [ebp + 0x14], 6
mov al, 6
jmp 0x585e16
mov ecx, dword [esp + 0x74]
mov edx, dword [esp + 0x18]
mov eax, ebp
call fcn.00584570
jmp 0x585a71
cmp dword [esp + 0x34], 1
jne 0x58644b
jmp 0x586469
mov dword [esp], 0x88
call fcn.004ed800
mov dword [ebp + 0x88], eax
mov dword [ebp + 0x8c], 2
mov ecx, 1
jmp 0x58619c
mov ebx, 0x70
mov dword [esp + 0x2c], 0
jmp 0x585f0b
mov edx, dword [esp + 0x74]
mov dword [esp + 4], edx
mov eax, dword [esp + 0x18]
mov dword [esp], eax
xor ecx, ecx
mov edx, 0x3d
mov eax, ebp
call fcn.00582ae8
mov edi, eax
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x585ae8
jmp 0x585a40
lea edx, [edx + edx*2]
shr edx, 1
inc edx
mov eax, dword [ebp + 0x30]
cmp eax, dword [esp + 0x40]
je 0x5868a0
lea ecx, [edx*4]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 0x14], edx
call fcn.004ed8a4
test eax, eax
mov edx, dword [esp + 0x14]
je 0x586882
mov dword [ebp + 0x30], eax
mov ecx, dword [ebp + 0x34]
lea eax, [eax + ecx*4]
cmp edx, ecx
jbe 0x585f0b
mov esi, ecx
neg esi
lea eax, [eax + esi*4]
lea esi, [esi]
mov dword [eax + ecx*4], 0
inc ecx
cmp edx, ecx
jne 0x586740
mov dword [ebp + 0x34], edx
jmp 0x585f0b
mov eax, ebp
call fcn.005833e0
test eax, eax
je 0x586843
cmp dword [ebp + 0x20], 0x64
je 0x586b33
mov dword [esp + 0x34], 0x100
mov eax, dword [esp + 0x34]
cmp dword [esp + 0x30], eax
jg 0x5865eb
cmp word [ebp + 0x24], 0
mov eax, dword [ebp + 0x20]
je 0x586a66
mov dword [esp + 0x20], 1
jmp 0x5865e2
movsx ecx, word [ebp + 0x68]
mov eax, dword [ebp + 0x60]
mov dword [esp + 4], edi
mov dword [esp], esi
mov edx, 0x70
call fcn.005819fc
jmp 0x5862d3
mov eax, ebp
call fcn.005833e0
mov eax, dword [esp + 0x30]
test eax, eax
jne 0x5863f6
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x5863f6
test edi, edi
je 0x5867e7
mov edx, edi
mov eax, ebp
call fcn.00580c24
cmp ebx, 0x28
jne 0x5867fa
mov eax, dword [ebp + 0x30]
mov ecx, dword [esp + 0x2c]
mov dword [eax + ecx*4], 0
mov eax, dword [ebp + 0x60]
mov esi, dword [esp + 0x74]
mov dword [esi + 0x1c], esi
mov ecx, dword [esp + 0x18]
mov edx, ecx
call fcn.005815ec
mov dword [esi + 0x1c], 0
mov eax, dword [esp + 0x18]
mov dword [eax + 0x1c], 0
mov eax, dword [ebp + 0x60]
mov dword [esp + 4], esi
mov edx, dword [esp + 0x18]
mov dword [esp], edx
xor ecx, ecx
mov edx, 0x6e
call fcn.005819fc
mov ebx, dword [ebp + 0x20]
jmp 0x5859b0
mov eax, dword [ebp + 0x20]
mov edx, dword [esp + 0x30]
mov dword [esp + 0x34], edx
mov dword [esp + 0x20], 0
jmp 0x5865e2
mov dword [ebp + 0x20], 0x65
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x5859ab
mov dword [ebp + 0x14], 0xc
jmp 0x5859ab
mov ecx, dword [esp + 0x20]
jmp 0x585bd8
mov dword [ebp + 0x20], 0x65
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x585f0b
mov dword [ebp + 0x14], 0xc
jmp 0x585f0b
lea eax, [edx*4]
mov dword [esp], eax
mov dword [esp + 0x14], edx
call fcn.004ed800
test eax, eax
mov edx, dword [esp + 0x14]
je 0x586882
mov ecx, dword [ebp + 0x34]
shl ecx, 2
mov esi, dword [ebp + 0x30]
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x586725
mov eax, dword [ebp + 0x60]
mov edx, dword [edi + 0x18]
mov dword [esp + 4], edx
mov edx, dword [esp + 0x3c]
mov dword [esp], edx
xor ecx, ecx
mov edx, 0x6e
call fcn.005819fc
mov cl, byte [edi + 1]
mov byte [esp + 0x30], cl
movsx edx, cl
or edx, dword [esp + 0x20]
lea eax, [edx*4]
lea ecx, [edx + edx]
and eax, ecx
and eax, 4
and edx, 0xfffffffc
or eax, edx
mov edx, dword [esp + 0x20]
test edx, edx
jne 0x586ab4
mov dl, byte [esp + 0x30]
and edx, 3
or eax, edx
mov dword [esp + 0x30], eax
mov eax, dword [edi + 0x18]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x18]
mov dword [esp], eax
mov ecx, dword [esp + 0x30]
mov edx, 0x7c
mov eax, ebp
call fcn.00582ae8
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x585a40
mov eax, dword [esp + 0x2c]
mov dword [eax + 0xc], edi
mov ecx, dword [esp + 0x30]
and ecx, 3
mov eax, dword [edi + 0x18]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
mov edx, 0x7c
mov eax, ebp
call fcn.00582ae8
mov dword [esp + 0x30], eax
mov edx, dword [esp + 0x2c]
mov dword [edx + 0x10], eax
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x585a40
mov eax, dword [edi + 0x18]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
xor ecx, ecx
mov edx, 0x3d
mov eax, ebp
call fcn.00582ae8
mov edx, dword [esp + 0x30]
mov dword [edx + 0xc], eax
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x585a40
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x44]
mov dword [eax + 0xc], edx
add edx, 0xc
mov dword [esp + 0x2c], edx
cmp ebx, 0x62
jne 0x585c5a
mov ebx, 1
mov dword [esp + 0x30], 1
mov eax, dword [ebp + 0x60]
mov edx, dword [edi + 0x14]
mov dword [esp + 4], edx
mov dword [esp], esi
xor ecx, ecx
mov edx, 0x6e
call fcn.005819fc
mov ecx, dword [edi + 0x18]
mov edx, dword [edi + 0x14]
mov eax, dword [esp + 0x34]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
mov eax, ebp
call fcn.005855e8
mov word [edi + 8], bx
mov edx, dword [esp + 0x34]
mov word [edi + 0xa], dx
mov al, byte [edi + 1]
mov cl, byte [esp + 0x20]
or ecx, eax
and ecx, 0xfffffffc
movsx edx, al
or edx, dword [esp + 0x20]
lea ebx, [edx*4]
shl edx, 1
and edx, ebx
and edx, 4
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x586b61
mov bl, byte [esp + 0x20]
or eax, ecx
or eax, edx
or eax, ebx
mov byte [edi + 1], al
jmp 0x585d3e
mov dword [esp + 0x20], 2
jmp 0x5865e2
mov eax, dword [ebp + 0x60]
mov ecx, dword [esp + 0x74]
mov dword [esp + 4], ecx
mov edx, dword [edi + 0x18]
mov dword [esp], edx
xor ecx, ecx
mov edx, 0x6e
call fcn.005819fc
mov esi, dword [esp + 0x74]
mov dword [esp + 4], esi
mov eax, dword [edi + 0x18]
mov dword [esp], eax
xor ecx, ecx
mov edx, 0x3d
mov eax, ebp
call fcn.00582ae8
mov dword [ebx + 0x10], eax
jmp 0x585d8c
mov edx, dword [esp + 0x20]
jmp 0x58691f
mov edx, dword [edi + 0x18]
mov dword [esp + 0x48], edx
mov ecx, dword [edi + 0x14]
mov dword [esp + 0x4c], ecx
mov eax, dword [ebp + 0x60]
mov dword [edx + 0x1c], edx
mov edx, ecx
call fcn.005815ec
mov eax, dword [esp + 0x48]
mov dword [eax + 0x1c], 0
mov edx, dword [esp + 0x4c]
mov dword [edx + 0x1c], 0
mov eax, dword [ebp + 0x30]
mov ecx, dword [esp + 0x2c]
mov eax, dword [eax + ecx*4]
mov ecx, dword [eax + 0x18]
mov edx, dword [eax + 0x14]
mov eax, dword [edi + 0x18]
mov dword [esp + 4], eax
mov eax, dword [edi + 0x14]
mov dword [esp], eax
mov eax, dword [ebp + 0x60]
call fcn.00582154
mov ecx, dword [ebp + 0x14]
test ecx, ecx
jne 0x585a40
mov eax, dword [esp + 0x30]
test eax, eax
je 0x5868cd
mov ebx, dword [esp + 0x30]
jmp 0x5869e6
mov eax, ebp
call fcn.0058415c
mov dword [esp + 0x34], eax
jmp 0x586775
mov eax, dword [ebp + 0x60]
mov edx, dword [edi + 0x14]
mov dword [esp + 4], edx
mov dword [esp], esi
xor ecx, ecx
mov edx, 0x6e
call fcn.005819fc
jmp 0x585d3e
mov bl, al
and ebx, 3
jmp 0x586a58