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

Disassembly:
push 0xffffffffffffffff
push 0x4cba90
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x522d80]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x522d80]
xor eax, esp
push eax
lea eax, [esp + 0xb0]
mov dword fs:[0], eax
mov edi, dword [esp + 0xc8]
xor ebx, ebx
mov eax, 0xf
mov esi, ecx
mov dword [esp + 0x1c], edi
mov byte [esp + 0x14], bl
mov byte [esp + 0x15], bl
mov byte [esp + 0x16], bl
mov dword [esp + 0xa8], eax
mov dword [esp + 0xa4], ebx
mov byte [esp + 0x94], bl
mov dword [esp + 0xb8], ebx
mov dword [esp + 0x8c], eax
mov dword [esp + 0x88], ebx
mov byte [esp + 0x78], bl
mov eax, 1
mov byte [esp + 0xb8], 1
mov dword [esp + 0x18], 0xffffffff
cmp dword [esi + 0xec4], eax
je 0x4759d7
cmp dword [esi + 0x204], eax
jne 0x474fde
cmp dword [esi + 0x56c], ebx
je 0x4759d9
mov eax, dword [esp + 0xcc]
add dword [esi + 0x30c], eax
mov eax, dword [esi + 0x30c]
cmp eax, dword [esi + 0x578]
jge 0x475013
cmp dword [esi + 0x56c], ebx
jne 0x475013
cmp dword [esi + 0x8c8], ebx
je 0x4758df
mov edi, dword [esp + 0x1c]
xor ebx, ebx
mov dword [esi + 0x30c], ebx
cmp byte [edi], 0x53
je 0x475029
mov dword [esi + 0x1b8], ebx
jmp 0x4759d7
cmp dword [esi + 0xdd0], ebx
jne 0x47505c
mov eax, dword [esi + 0x4d4]
mov ecx, dword [esi + 0x234]
cdq
sub eax, edx
mov edx, dword [esi + 0x238]
sar eax, 1
sub ecx, eax
sub ecx, 2
sub edx, 2
mov dword [esi + 0xdd0], ecx
mov dword [esi + 0xdcc], edx
mov eax, dword [edi + 0x404]
dec eax
cmp eax, dword [esi + 0x1b8]
lea ebp, [edi + 1]
mov dword [esp + 0x28], eax
mov dword [esi + 0x848], ebx
mov dword [esi + 0x84c], ebx
jg 0x475138
mov eax, dword [esi + 0x4d8]
mov ecx, dword [esi + 0x4d4]
push eax
push ecx
mov ecx, esi
call fcn.0046a7c0
mov ecx, esi
call fcn.0046a900
mov dl, byte [edi + 0x408]
push 0xfffffffffffffffe
lea edi, [esi + 0x1cc]
push 1
mov ecx, edi
mov byte [esi + 0x1b4], dl
call fcn.004026e0
push 0x30
push 1
mov ecx, edi
call fcn.004026e0
push 0xfffffffffffffffe
push 1
mov ecx, edi
call fcn.004026e0
mov eax, dword [esi + 0x1bc]
cmp eax, dword [esi + 0xb4]
jle 0x4750e6
mov ecx, esi
call fcn.00435ad0
mov ecx, dword [esi + 0x4d8]
add ecx, dword [esi + 0x1c8]
add ecx, dword [esi + 0xcc]
cmp ecx, dword [esi + 0x240]
jl 0x475118
mov ecx, esi
call fcn.0046aa30
mov edx, dword [esi + 0x238]
mov dword [esi + 0x1c4], edx
call fcn.00435ad0
lea ecx, [esp + 0x74]
mov dword [esi + 0x1b8], ebx
call fcn.004026a0
lea ecx, [esp + 0x90]
call fcn.004026a0
jmp 0x4759d7
mov eax, dword [esi + 0xdc8]
push 0x2000
lea edx, [esp + 0x68]
push edx
lea edx, [esp + 0x58]
mov dword [esp + 0x70], ebx
mov dword [esp + 0x6c], ebx
mov dword [esp + 0x74], 0x400
mov dword [esp + 0x78], 0x300
mov eax, dword [eax]
mov ecx, dword [eax]
push edx
push ebx
push eax
mov eax, dword [ecx + 0x4c]
call eax
mov edi, dword [esp + 0x18]
push 0
cmp edi, 0xffffffff
jne 0x47591e
mov ecx, dword [esp + 0x20]
mov dl, byte [ecx + 0x408]
mov eax, dword [esi + 0x1b8]
add eax, ebp
mov byte [esi + 0xcf9], dl
mov cl, byte [eax + 1]
mov bl, byte [eax]
mov byte [esp + 0x19], cl
push 0x4cf96b
lea ecx, [esp + 0x98]
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1e], 0
call fcn.00402870
push 0
push 0x4cf96b
lea ecx, [esp + 0x7c]
call fcn.00402870
mov al, byte [esi + 0xcf9]
mov cl, al
not cl
cmp bl, cl
jne 0x4755ee
cmp byte [esp + 0x15], cl
jne 0x4755ee
mov edx, dword [esp + 0x1c]
movzx ecx, byte [edx + 0x408]
xor al, bl
mov byte [esp + 0x58], al
mov edx, dword [esp + 0x58]
push edx
mov byte [esi + 0x1b4], cl
lea edi, [esi + 0x1cc]
push 1
mov ecx, edi
call fcn.004026e0
push 0x30
push 1
mov ecx, edi
call fcn.004026e0
movzx eax, byte [esi + 0xcf9]
xor al, byte [esp + 0x15]
mov byte [esp + 0x48], al
mov ecx, dword [esp + 0x48]
push ecx
push 1
mov ecx, edi
call fcn.004026e0
add dword [esi + 0x1b8], 2
mov eax, dword [esi + 0x1b8]
mov cl, byte [eax + ebp]
mov al, byte [esi + 0xcf9]
movzx ebx, al
xor al, cl
movzx edx, cl
mov byte [esp + 0x34], al
mov eax, dword [esp + 0x34]
push eax
xor ebx, edx
push 1
mov ecx, edi
mov dword [esp + 0x2c], ebx
call fcn.004026e0
inc dword [esi + 0x1b8]
test ebx, ebx
jle 0x47532f
lea ecx, [ecx]
mov ecx, dword [esi + 0x1b8]
movzx edx, byte [ecx + ebp]
xor dl, byte [esi + 0xcf9]
lea ecx, [esp + 0x90]
mov byte [esp + 0x5c], dl
mov eax, dword [esp + 0x5c]
push eax
push 1
call fcn.004026e0
mov ecx, dword [esi + 0x1b8]
movzx edx, byte [ecx + ebp + 1]
xor dl, byte [esi + 0xcf9]
lea ecx, [esp + 0x90]
mov byte [esp + 0x3c], dl
mov eax, dword [esp + 0x3c]
push eax
push 1
call fcn.004026e0
mov ecx, dword [esi + 0x1b8]
movzx edx, byte [ecx + ebp]
xor dl, byte [esi + 0xcf9]
mov ecx, edi
mov byte [esp + 0x2c], dl
mov eax, dword [esp + 0x2c]
push eax
push 1
call fcn.004026e0
push 0x30
push 1
mov ecx, edi
call fcn.004026e0
mov ecx, dword [esi + 0x1b8]
movzx edx, byte [ecx + ebp + 1]
xor dl, byte [esi + 0xcf9]
mov ecx, edi
mov byte [esp + 0x44], dl
mov eax, dword [esp + 0x44]
push eax
push 1
call fcn.004026e0
add dword [esi + 0x1b8], 2
sub ebx, 1
jne 0x475280
mov ecx, dword [esi + 0x1b8]
mov al, byte [ecx + ebp]
mov cl, byte [esi + 0xcf9]
movzx ebx, al
xor al, cl
mov byte [esp + 0x60], al
mov eax, dword [esp + 0x60]
movzx edx, cl
push eax
push 1
mov ecx, edi
xor ebx, edx
call fcn.004026e0
inc dword [esi + 0x1b8]
test ebx, ebx
jle 0x475415
mov dword [esp + 0x20], ebx
lea esp, [esp]
mov ecx, dword [esi + 0x1b8]
movzx edx, byte [ecx + ebp]
mov byte [esp + 0x4c], dl
mov eax, dword [esp + 0x4c]
push eax
push 1
lea ecx, [esp + 0x7c]
call fcn.004026e0
mov ecx, dword [esi + 0x1b8]
movzx edx, byte [ecx + ebp + 1]
mov byte [esp + 0x30], dl
mov eax, dword [esp + 0x30]
push eax
push 1
lea ecx, [esp + 0x7c]
call fcn.004026e0
mov ecx, dword [esi + 0x1b8]
movzx edx, byte [ecx + ebp]
xor dl, byte [esi + 0xcf9]
mov ecx, edi
mov byte [esp + 0x38], dl
mov eax, dword [esp + 0x38]
push eax
push 1
call fcn.004026e0
push 0x30
push 1
mov ecx, edi
call fcn.004026e0
movzx edx, byte [esi + 0x8a4]
mov ecx, dword [esi + 0x1b8]
add dl, byte [esi + 0xcf9]
xor dl, byte [ecx + ebp + 1]
mov ecx, edi
mov byte [esp + 0x40], dl
mov eax, dword [esp + 0x40]
push eax
push 1
call fcn.004026e0
add dword [esi + 0x1b8], 2
sub dword [esp + 0x20], 1
jne 0x475370
mov ecx, dword [esi + 0x4d4]
mov eax, dword [esi + 0xc8]
add eax, ecx
imul eax, ebx
cdq
idiv dword [esp + 0x24]
mov edx, dword [esi + 0x570]
mov dword [esp + 0x20], edx
mov dword [esi + 0x570], 1
mov edi, eax
lea eax, [ebx + 1]
imul eax, ecx
add eax, dword [esi + 0x1c4]
cmp eax, dword [esi + 0x23c]
jl 0x47550c
mov ecx, dword [esi + 0x1bc]
cmp ecx, dword [esi + 0xb4]
mov ecx, esi
jge 0x4754bf
call fcn.0046aa30
call fcn.0046a900
mov eax, dword [esi + 0x1b8]
lea edx, [eax + 3]
cmp dword [esp + 0x28], edx
jg 0x4754a8
mov eax, dword [esi + 0x4d8]
mov ecx, dword [esi + 0x4d4]
push eax
push ecx
mov ecx, esi
call fcn.0046a7c0
xor eax, eax
mov dword [esi + 0x1b8], eax
mov dword [esp + 0x18], eax
jmp 0x47587d
cmp dword [esi + 0x56c], 1
jne 0x47550c
add eax, 2
mov dword [esi + 0x1b8], eax
jmp 0x47587d
mov edx, dword [esi + 0x4d8]
mov eax, dword [esi + 0x4d4]
push edx
push eax
call fcn.0046a7c0
cmp dword [esi + 0x1bc], 0
mov ecx, dword [esi + 0x238]
mov dword [esi + 0x1c4], ecx
je 0x47550c
mov eax, 1
mov dword [esi + 0x204], eax
mov dword [esi + 0x208], eax
mov eax, dword [esi + 0x57c]
cmp dword [esi + 0x578], eax
je 0x47550c
mov dword [esi + 0x578], eax
lea edx, [esp + 0x50]
push edx
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x44], esp
push 0xffffffffffffffff
push 0
lea eax, [esp + 0xb8]
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], 0
push eax
mov byte [ecx + 4], 0
call fcn.00402790
push ebx
push edi
mov ecx, esi
call fcn.0046b860
add ebx, ebx
xor edi, edi
mov dword [esp + 0x24], ebx
test ebx, ebx
jle 0x4755d5
cmp edi, dword [esp + 0x88]
jbe 0x475564
call fcn.00497123
cmp dword [esp + 0x8c], 0x10
mov eax, dword [esp + 0x78]
jae 0x475576
lea eax, [esp + 0x78]
mov cl, byte [eax + edi]
lea ebx, [edi + 1]
mov byte [esp + 0x14], cl
cmp ebx, dword [esp + 0x88]
jbe 0x47558e
call fcn.00497123
cmp dword [esp + 0x8c], 0x10
mov eax, dword [esp + 0x78]
jae 0x4755a0
lea eax, [esp + 0x78]
mov dl, byte [ebx + eax]
push 0
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x58]
push ecx
mov ecx, esi
mov byte [esp + 0x21], dl
call fcn.00470b30
mov edx, dword [esi + 0xc8]
add edx, dword [esi + 0x4d4]
add edi, 2
add dword [esi + 0x1c4], edx
cmp edi, dword [esp + 0x24]
jl 0x475556
mov eax, dword [esp + 0x20]
mov dword [esi + 0x570], eax
mov dword [esi + 0x214], 1
jmp 0x47587d
cmp dword [esi + 0x1b8], 0
jne 0x47562e
cmp dword [esi + 0x20c], 0
je 0x47562e
mov ecx, dword [esp + 0xc0]
push ebp
push ecx
mov ecx, esi
call fcn.0046a6c0
test eax, eax
je 0x47562e
mov edx, dword [esp + 0xcc]
sub dword [esi + 0x30c], edx
mov dword [esp + 0x18], 1
jmp 0x47587d
lea eax, [esp + 0x14]
mov ebx, 1
push eax
mov ecx, esi
mov dword [esi + 0x20c], ebx
call fcn.0046b100
mov ecx, dword [esp + 0xc0]
push ecx
push ebp
mov ecx, esi
call fcn.00474de0
test eax, eax
je 0x47566f
mov edx, dword [esp + 0xcc]
sub dword [esi + 0x30c], edx
mov dword [esp + 0x18], ebx
jmp 0x47587d
mov eax, dword [esp + 0x1c]
movzx ecx, byte [eax + 0x408]
push 0
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x58]
mov byte [esi + 0x1b4], cl
push eax
mov ecx, esi
call fcn.00470b30
mov ecx, esi
call fcn.0046aa30
movzx ecx, byte [esi + 0xcf9]
xor cl, byte [esp + 0x14]
lea edi, [esi + 0x1cc]
movzx edx, cl
push edx
push ebx
mov ecx, edi
call fcn.004026e0
push 0x30
push ebx
mov ecx, edi
call fcn.004026e0
mov al, byte [esi + 0x8a4]
add al, byte [esi + 0xcf9]
xor al, byte [esp + 0x15]
movzx ecx, al
push ecx
push ebx
mov ecx, edi
call fcn.004026e0
mov eax, dword [esi + 0x4d4]
mov ecx, dword [esi + 0x1c4]
lea edx, [ecx + eax*2]
cmp edx, dword [esi + 0x23c]
mov dword [esi + 0x214], ebx
jl 0x4757b0
mov eax, dword [esi + 0x4d8]
add eax, dword [esi + 0x1c8]
add eax, dword [esi + 0xcc]
cmp eax, dword [esi + 0x240]
jl 0x47572b
mov ecx, dword [esi + 0x238]
mov dword [esi + 0x1c4], ecx
mov ecx, esi
call fcn.00435ad0
mov edx, dword [esi + 0x1bc]
cmp edx, dword [esi + 0xb4]
jge 0x475778
mov ecx, esi
call fcn.0046a900
mov eax, dword [esi + 0x1b8]
lea ecx, [eax + 3]
cmp dword [esp + 0x28], ecx
jg 0x475762
mov edx, dword [esi + 0x4d8]
mov eax, dword [esi + 0x4d4]
push edx
push eax
jmp 0x475490
cmp dword [esi + 0x56c], ebx
jne 0x4757a0
add eax, 2
mov dword [esi + 0x1b8], eax
jmp 0x47587d
mov ecx, dword [esi + 0x4d8]
mov edx, dword [esi + 0x4d4]
push ecx
push edx
mov ecx, esi
call fcn.0046a7c0
mov eax, dword [esi + 0x238]
mov ecx, esi
mov dword [esi + 0x1c4], eax
call fcn.00435ad0
add dword [esi + 0x1b8], 2
mov dword [esp + 0x18], ebx
jmp 0x47587d
mov edx, dword [esi + 0x1b8]
lea ebx, [edx + 3]
cmp dword [esp + 0x28], ebx
jg 0x475864
mov ecx, dword [esi + 0x4d8]
mov edx, dword [esi + 0x4d4]
push ecx
push edx
mov ecx, esi
call fcn.0046a7c0
mov ecx, esi
call fcn.0046a900
mov eax, dword [esp + 0x1c]
mov cl, byte [eax + 0x408]
push 0xfffffffffffffffe
mov byte [esi + 0x1b4], cl
push 1
mov ecx, edi
call fcn.004026e0
push 0x30
push 1
mov ecx, edi
call fcn.004026e0
push 0xfffffffffffffffe
push 1
mov ecx, edi
call fcn.004026e0
mov edx, dword [esi + 0x1bc]
cmp edx, dword [esi + 0xb4]
jle 0x475825
mov ecx, esi
call fcn.00435ad0
mov eax, dword [esi + 0x4d8]
add eax, dword [esi + 0x1c8]
add eax, dword [esi + 0xcc]
cmp eax, dword [esi + 0x240]
jl 0x475497
mov ecx, dword [esi + 0x238]
mov dword [esi + 0x1c4], ecx
mov ecx, esi
call fcn.00435ad0
xor eax, eax
mov dword [esi + 0x1b8], eax
mov dword [esp + 0x18], eax
jmp 0x47587d
add edx, 2
mov dword [esi + 0x1b8], edx
mov edx, dword [esi + 0xc8]
add edx, ecx
add edx, eax
mov dword [esi + 0x1c4], edx
cmp dword [esi + 0x570], 0
jne 0x475170
cmp dword [esi + 0x56c], 0
jne 0x475170
cmp dword [esi + 0x578], 0
je 0x475170
mov edx, dword [esi + 0xdc8]
mov eax, dword [edx]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push 0
push eax
call edx
mov ecx, esi
call fcn.0046aa80
cmp dword [esp + 0x18], 0
je 0x475988
cmp dword [esp + 0x8c], 0x10
jb 0x4758df
mov eax, dword [esp + 0x78]
push eax
call fcn.00485fc1
add esp, 4
cmp dword [esp + 0xa8], 0x10
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], 0
mov byte [esp + 0x78], 0
jb 0x475914
mov ecx, dword [esp + 0x94]
push ecx
call fcn.00485fc1
add esp, 4
mov eax, 1
jmp 0x4759d9
mov eax, dword [esi + 0xdc8]
mov eax, dword [eax]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push eax
call edx
mov ecx, esi
call fcn.0046aa80
mov esi, 0x10
cmp dword [esp + 0x8c], esi
jb 0x475950
mov eax, dword [esp + 0x78]
push eax
call fcn.00485fc1
add esp, 4
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], 0
mov byte [esp + 0x78], 0
cmp dword [esp + 0xa8], esi
jb 0x475984
mov ecx, dword [esp + 0x94]
push ecx
call fcn.00485fc1
add esp, 4
mov eax, edi
jmp 0x4759d9
mov esi, 0x10
cmp dword [esp + 0x8c], esi
jb 0x4759a3
mov edx, dword [esp + 0x78]
push edx
call fcn.00485fc1
add esp, 4
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], 0
mov byte [esp + 0x78], 0
cmp dword [esp + 0xa8], esi
jb 0x4759d7
mov eax, dword [esp + 0x94]
push eax
call fcn.00485fc1
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0xb0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x98]
xor ecx, esp
call fcn.00497565
add esp, 0xa8
ret 0x14