Function at 0x480020
Capabilities:
Encode data using xor
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d7770
push eax
mov eax, dword [ebp + 8]
mov dword fs:[0], esp
sub esp, 0x60
push ebx
xor ebx, ebx
mov byte [eax], bl
mov eax, dword [ebp + 0x20]
push esi
mov esi, dword [ebp + 0x1c]
push edi
cmp dword [0x519370], eax
jne 0x480062
cmp dword [0x51936c], esi
je 0x4806ac
cmp dword [0x519380], eax
jne 0x480076
cmp dword [0x51937c], esi
je 0x4806ac
cmp dword [0x519388], eax
jne 0x48008a
cmp dword [0x519384], esi
je 0x4806ac
cmp dword [ebp + 0x14], 1
jl 0x4806ac
mov eax, dword [ebp + 0xc]
call fcn.004807b0
test al, al
jne 0x4806ac
mov ecx, 0x518a90
call fcn.0046da50
test al, al
jne 0x4806ac
call fcn.00414e10
xor edx, edx
mov ecx, 0x5a
div ecx
push 0x320
mov esi, 0x190
push ebx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x28], esi
movzx edi, dx
mov dword [esp + 0x20], edi
call fcn.004c61a7
add esp, 8
cmp eax, ebx
jne 0x4800fd
push ebx
call fcn.004c57e5
add esp, 4
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], ebx
jmp 0x48010a
xor edx, edx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ebx
mov word [eax], dx
mov dword [esp + 0x74], ebx
push 0x320
push ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x34], esi
call fcn.004c61a7
add esp, 8
cmp eax, ebx
jne 0x48013b
push ebx
call fcn.004c57e5
add esp, 4
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], ebx
jmp 0x480148
xor ecx, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ebx
mov word [eax], cx
push 1
push ebx
push 0x5077b8
lea esi, [esp + 0x2c]
mov byte [esp + 0x80], 1
call fcn.00415800
push 1
push ebx
push 0x4e7a74
call fcn.00415800
movzx eax, di
mov dword [esp + 0x14], eax
and eax, 0x80000001
jns 0x480181
dec eax
or eax, 0xfffffffe
inc eax
je 0x4802fe
xor edi, edi
cmp dword [ebp + 0x14], ebx
jle 0x480250
mov edx, dword [ebp + 0x10]
mov esi, dword [edx + edi*4]
movzx eax, word [esi]
mov ebx, dword [ebp + 0x18]
xor edx, edx
test ax, ax
je 0x4801d4
mov ecx, eax
xor eax, eax
lea esp, [esp]
cmp cx, word [0x511544]
jne 0x4801c7
mov ecx, dword [ebx + edi*4]
cmp word [eax + ecx], 0
jne 0x4802a6
inc edx
lea eax, [edx + edx]
movzx ecx, word [eax + esi]
test cx, cx
jne 0x4801b0
push 0xa
push esi
call fcn.004c5cc1
add esp, 8
test eax, eax
je 0x480228
push 3
push esi
call fcn.004c5cc1
add esp, 8
test eax, eax
jne 0x48074e
mov ebx, esi
lea eax, [esp + 0x2c]
call fcn.00415310
mov esi, eax
test esi, esi
je 0x48074e
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push 0x511498
push 0x4e7a74
push esi
xor eax, eax
call fcn.004a7990
add esp, 0x1c
push 1
push 0
push esi
lea esi, [esp + 0x2c]
call fcn.00415800
push 1
push 0
push 0x4e7a74
call fcn.00415800
inc edi
cmp edi, dword [ebp + 0x14]
jl 0x480192
xor ebx, ebx
mov esi, dword [esp + 0x24]
cmp esi, ebx
je 0x480401
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x480261
sub eax, edx
sar eax, 1
cmp eax, 0xccd
jb 0x480401
mov edi, dword [esp + 0x30]
cmp edi, ebx
je 0x48029b
mov eax, dword [esp + 0x2c]
push eax
push ebx
push edi
call fcn.004ce290
add esp, 0xc
push edi
call fcn.004c57e5
add esp, 4
mov ecx, dword [esp + 0x20]
push ecx
push ebx
jmp 0x480782
mov esi, dword [esp + 0x30]
test esi, esi
je 0x4802c7
mov edx, dword [esp + 0x2c]
push edx
push 0
push esi
call fcn.004ce290
add esp, 0xc
push esi
call fcn.004c57e5
add esp, 4
mov esi, dword [esp + 0x24]
test esi, esi
je 0x4806ac
mov eax, dword [esp + 0x20]
push eax
push 0
push esi
call fcn.004ce290
add esp, 0xc
push esi
call fcn.004c57e5
add esp, 4
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp + 0x14]
dec edi
cmp edi, 0xffffffff
jle 0x480250
jmp 0x480310
mov eax, dword [ebp + 0x10]
mov esi, dword [eax + edi*4]
movzx eax, word [esi]
xor edx, edx
test ax, ax
je 0x48034b
mov ebx, dword [ebp + 0x18]
mov ecx, eax
xor eax, eax
cmp cx, word [0x511544]
jne 0x48033e
mov ecx, dword [ebx + edi*4]
cmp word [eax + ecx], 0
jne 0x4803ca
inc edx
lea eax, [edx + edx]
movzx ecx, word [eax + esi]
test cx, cx
jne 0x480327
push 0xa
push esi
call fcn.004c5cc1
add esp, 8
test eax, eax
je 0x48039f
push 3
push esi
call fcn.004c5cc1
add esp, 8
test eax, eax
jne 0x48074e
mov ebx, esi
lea eax, [esp + 0x2c]
call fcn.00415310
mov esi, eax
test esi, esi
je 0x48074e
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 1
push 0x511498
push 0x4e7a74
push esi
xor eax, eax
call fcn.004a7990
add esp, 0x1c
push 1
push 0
push esi
lea esi, [esp + 0x2c]
call fcn.00415800
push 1
push 0
push 0x4e7a74
call fcn.00415800
dec edi
cmp edi, 0xffffffff
jg 0x480310
jmp 0x48024e
mov esi, dword [esp + 0x30]
test esi, esi
je 0x4803eb
mov edx, dword [esp + 0x2c]
push edx
push 0
push esi
call fcn.004ce290
add esp, 0xc
push esi
call fcn.004c57e5
add esp, 4
mov esi, dword [esp + 0x24]
test esi, esi
je 0x4806ac
mov eax, dword [esp + 0x20]
push eax
jmp 0x480780
mov eax, dword [0x518a90]
cmp eax, 2
jne 0x48041f
mov eax, dword [esp + 0x18]
lea edx, [eax*4]
or edx, eax
mov byte [esp + 0x13], 0x80
jmp 0x48044f
cmp eax, 1
mov eax, dword [esp + 0x18]
jne 0x48043d
lea ecx, [eax*4]
or ecx, eax
add ecx, ecx
lea eax, [ecx + ecx]
mov byte [esp + 0x13], 0x40
jmp 0x480452
lea edx, [eax*4]
or edx, eax
add edx, edx
add edx, edx
mov byte [esp + 0x13], 0
lea eax, [edx + edx]
xor eax, dword [ebp + 0xc]
and eax, 0xfff
test byte [0x519f88], 1
jne 0x48047a
mov esi, dword [0x518a94]
or dword [0x519f88], 1
shr esi, 1
mov dword [0x519f8c], esi
jmp 0x480480
mov esi, dword [0x519f8c]
mov edx, dword [ebp + 0x14]
mov ebx, dword [0x518a98]
movzx eax, ax
mov ecx, 0xfff
sub ecx, eax
mov eax, dword [esp + 0x14]
push ecx
push edx
push 0x5077b8
add eax, 0x20
push eax
push str._c_s_01x_03x
mov edi, ebx
mov dword [esp + 0x30], esi
call fcn.004a71f0
xor esi, esi
add esp, 0x14
mov dword [esp + 0x64], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x58], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x44], esi
push 0x50725c
mov byte [esp + 0x78], 5
call fcn.0049fc00
add esp, 4
push eax
push ebx
lea ecx, [esp + 0x1c]
lea edx, [esp + 0x40]
call fcn.00478e00
add esp, 8
test al, al
je 0x4806be
cmp dword [0x51148c], 0x3f
jge 0x4806be
mov edi, dword [esp + 0x14]
inc edi
lea esi, [esp + 0x44]
call fcn.00415010
mov esi, dword [esp + 0x48]
mov edi, dword [esp + 0x3c]
test esi, esi
je 0x4806c8
mov cl, byte [0x51148c]
and cl, 0x3f
or cl, byte [esp + 0x13]
xor eax, eax
mov byte [esi], cl
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x480561
mov dl, byte [edi + eax]
xor byte [esi], dl
inc eax
cmp eax, ecx
jb 0x480557
test edi, edi
je 0x4806c8
test ecx, ecx
je 0x4806c8
lea eax, [ecx + 1]
cmp dword [esp + 0x44], eax
jb 0x4806c8
mov eax, dword [esp + 0x14]
push eax
push edi
inc esi
push esi
call fcn.004cd6c0
add esp, 0xc
lea edi, [esp + 0x44]
lea esi, [esp + 0x38]
call fcn.004150f0
mov eax, dword [esp + 0x38]
mov edi, dword [esp + 0x3c]
push edi
lea ecx, [esp + 0x60]
mov dword [esp + 0x18], eax
call fcn.0047b640
add esp, 4
test eax, eax
jne 0x4806c4
push 0x50725c
call fcn.0049fc00
mov ecx, dword [esp + 0x28]
add esp, 4
push ecx
lea edx, [esp + 0x18]
push edx
mov edx, eax
mov ecx, esi
call fcn.00478940
mov edi, dword [esp + 0x44]
add esp, 8
test al, al
je 0x4806c4
mov esi, dword [esp + 0x14]
xor eax, eax
test esi, esi
je 0x480601
mov cl, byte [esp + 0x18]
xor byte [edi + eax], cl
inc eax
cmp eax, esi
jb 0x4805f5
push esi
lea edx, [esp + 0x54]
push edi
push edx
call fcn.0047b940
add esp, 0xc
test eax, eax
jne 0x4806c4
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x60]
mov esi, dword [esp + 0x1c]
push eax
push ecx
push str._s_s
mov edi, ebx
call fcn.004a71f0
mov eax, ebx
add esp, 0xc
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x480640
sub eax, edx
sar eax, 1
add dword [0x51938c], eax
cmp eax, 0x4001
jae 0x480676
mov edx, dword [0x519368]
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x1c]
push edx
push eax
push ecx
call fcn.0047f5d0
mov edx, dword [ebp + 8]
mov byte [edx], 1
lea ecx, [esp + 0x44]
call fcn.00414f70
lea ecx, [esp + 0x38]
call fcn.00414f70
lea ecx, [esp + 0x50]
call fcn.00414f70
lea ecx, [esp + 0x5c]
call fcn.00414f70
lea ecx, [esp + 0x2c]
call fcn.00414f70
lea ecx, [esp + 0x20]
call fcn.00414f70
mov ecx, dword [esp + 0x6c]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edi, dword [esp + 0x3c]
jmp 0x4806c8
mov esi, dword [esp + 0x48]
mov dword [0x518ab8], 2
test esi, esi
je 0x4806ef
mov eax, dword [esp + 0x44]
push eax
push 0
push esi
call fcn.004ce290
add esp, 0xc
push esi
call fcn.004c57e5
add esp, 4
test edi, edi
je 0x48070c
mov ecx, dword [esp + 0x38]
push ecx
push 0
push edi
call fcn.004ce290
add esp, 0xc
push edi
call fcn.004c57e5
add esp, 4
mov esi, dword [esp + 0x54]
test esi, esi
je 0x48072d
mov edx, dword [esp + 0x50]
push edx
push 0
push esi
call fcn.004ce290
add esp, 0xc
push esi
call fcn.004c57e5
add esp, 4
mov esi, dword [esp + 0x60]
test esi, esi
je 0x48074e
mov eax, dword [esp + 0x5c]
push eax
push 0
push esi
call fcn.004ce290
add esp, 0xc
push esi
call fcn.004c57e5
add esp, 4
mov esi, dword [esp + 0x30]
test esi, esi
je 0x48076f
mov ecx, dword [esp + 0x2c]
push ecx
push 0
push esi
call fcn.004ce290
add esp, 0xc
push esi
call fcn.004c57e5
add esp, 4
mov esi, dword [esp + 0x24]
test esi, esi
je 0x4806ac
mov edx, dword [esp + 0x20]
push edx
push 0
push esi
call fcn.004ce290
add esp, 0xc
push esi
call fcn.004c57e5
mov ecx, dword [esp + 0x70]
add esp, 4
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret