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

Disassembly:
push 0xffffffffffffffff
push 0x4ca770
mov eax, dword fs:[0]
push eax
sub esp, 0x9c
mov eax, dword [0x521da0]
xor eax, esp
mov dword [esp + 0x98], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x521da0]
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 + 0xef8], eax
je 0x474c37
cmp dword [esi + 0x204], eax
jne 0x47423e
cmp dword [esi + 0x56c], ebx
je 0x474c39
mov eax, dword [esp + 0xcc]
add dword [esi + 0x30c], eax
mov eax, dword [esi + 0x30c]
cmp eax, dword [esi + 0x578]
jae 0x474273
cmp dword [esi + 0x56c], ebx
jne 0x474273
cmp dword [esi + 0x8e4], ebx
je 0x474b3f
mov edi, dword [esp + 0x1c]
xor ebx, ebx
mov dword [esi + 0x30c], ebx
cmp byte [edi], 0x53
je 0x474289
mov dword [esi + 0x1b8], ebx
jmp 0x474c37
cmp dword [esi + 0xdec], ebx
jne 0x4742bc
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 + 0xdec], ecx
mov dword [esi + 0xde8], 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 0x474398
mov eax, dword [esi + 0x4d8]
mov ecx, dword [esi + 0x4d4]
push eax
push ecx
mov ecx, esi
call fcn.004695e0
mov ecx, esi
call fcn.00469720
mov dl, byte [edi + 0x408]
push 0xfffffffffffffffe
lea edi, [esi + 0x1cc]
push 1
mov ecx, edi
mov byte [esi + 0x1b4], dl
call fcn.00402750
push 0x30
push 1
mov ecx, edi
call fcn.00402750
push 0xfffffffffffffffe
push 1
mov ecx, edi
call fcn.00402750
mov eax, dword [esi + 0x1bc]
cmp eax, dword [esi + 0xb4]
jle 0x474346
mov ecx, esi
call fcn.00434900
mov ecx, dword [esi + 0x4d8]
add ecx, dword [esi + 0x1c8]
add ecx, dword [esi + 0xcc]
cmp ecx, dword [esi + 0x240]
jl 0x474378
mov ecx, esi
call fcn.00469850
mov edx, dword [esi + 0x238]
mov dword [esi + 0x1c4], edx
call fcn.00434900
lea ecx, [esp + 0x74]
mov dword [esi + 0x1b8], ebx
call fcn.004026c0
lea ecx, [esp + 0x90]
call fcn.004026c0
jmp 0x474c37
mov eax, dword [esi + 0xde4]
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 0x474b7e
mov ecx, dword [esp + 0x20]
mov dl, byte [ecx + 0x408]
mov eax, dword [esi + 0x1b8]
add eax, ebp
mov byte [esi + 0xd15], dl
mov cl, byte [eax + 1]
mov bl, byte [eax]
mov byte [esp + 0x19], cl
push 0x4ce97b
lea ecx, [esp + 0x98]
mov byte [esp + 0x1c], bl
mov byte [esp + 0x1e], 0
call fcn.004028e0
push 0
push 0x4ce97b
lea ecx, [esp + 0x7c]
call fcn.004028e0
mov al, byte [esi + 0xd15]
mov cl, al
not cl
cmp bl, cl
jne 0x47484e
cmp byte [esp + 0x15], cl
jne 0x47484e
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.00402750
push 0x30
push 1
mov ecx, edi
call fcn.00402750
movzx eax, byte [esi + 0xd15]
xor al, byte [esp + 0x15]
mov byte [esp + 0x48], al
mov ecx, dword [esp + 0x48]
push ecx
push 1
mov ecx, edi
call fcn.00402750
add dword [esi + 0x1b8], 2
mov eax, dword [esi + 0x1b8]
mov cl, byte [eax + ebp]
mov al, byte [esi + 0xd15]
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.00402750
inc dword [esi + 0x1b8]
test ebx, ebx
jle 0x47458f
lea ecx, [ecx]
mov ecx, dword [esi + 0x1b8]
movzx edx, byte [ecx + ebp]
xor dl, byte [esi + 0xd15]
lea ecx, [esp + 0x90]
mov byte [esp + 0x5c], dl
mov eax, dword [esp + 0x5c]
push eax
push 1
call fcn.00402750
mov ecx, dword [esi + 0x1b8]
movzx edx, byte [ecx + ebp + 1]
xor dl, byte [esi + 0xd15]
lea ecx, [esp + 0x90]
mov byte [esp + 0x3c], dl
mov eax, dword [esp + 0x3c]
push eax
push 1
call fcn.00402750
mov ecx, dword [esi + 0x1b8]
movzx edx, byte [ecx + ebp]
xor dl, byte [esi + 0xd15]
mov ecx, edi
mov byte [esp + 0x2c], dl
mov eax, dword [esp + 0x2c]
push eax
push 1
call fcn.00402750
push 0x30
push 1
mov ecx, edi
call fcn.00402750
mov ecx, dword [esi + 0x1b8]
movzx edx, byte [ecx + ebp + 1]
xor dl, byte [esi + 0xd15]
mov ecx, edi
mov byte [esp + 0x44], dl
mov eax, dword [esp + 0x44]
push eax
push 1
call fcn.00402750
add dword [esi + 0x1b8], 2
sub ebx, 1
jne 0x4744e0
mov ecx, dword [esi + 0x1b8]
mov al, byte [ecx + ebp]
mov cl, byte [esi + 0xd15]
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.00402750
inc dword [esi + 0x1b8]
test ebx, ebx
jle 0x474675
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.00402750
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.00402750
mov ecx, dword [esi + 0x1b8]
movzx edx, byte [ecx + ebp]
xor dl, byte [esi + 0xd15]
mov ecx, edi
mov byte [esp + 0x38], dl
mov eax, dword [esp + 0x38]
push eax
push 1
call fcn.00402750
push 0x30
push 1
mov ecx, edi
call fcn.00402750
movzx edx, byte [esi + 0x8c0]
mov ecx, dword [esi + 0x1b8]
add dl, byte [esi + 0xd15]
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.00402750
add dword [esi + 0x1b8], 2
sub dword [esp + 0x20], 1
jne 0x4745d0
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 0x47476c
mov ecx, dword [esi + 0x1bc]
cmp ecx, dword [esi + 0xb4]
mov ecx, esi
jge 0x47471f
call fcn.00469850
call fcn.00469720
mov eax, dword [esi + 0x1b8]
lea edx, [eax + 3]
cmp dword [esp + 0x28], edx
jg 0x474708
mov eax, dword [esi + 0x4d8]
mov ecx, dword [esi + 0x4d4]
push eax
push ecx
mov ecx, esi
call fcn.004695e0
xor eax, eax
mov dword [esi + 0x1b8], eax
mov dword [esp + 0x18], eax
jmp 0x474add
cmp dword [esi + 0x56c], 1
jne 0x47476c
add eax, 2
mov dword [esi + 0x1b8], eax
jmp 0x474add
mov edx, dword [esi + 0x4d8]
mov eax, dword [esi + 0x4d4]
push edx
push eax
call fcn.004695e0
cmp dword [esi + 0x1bc], 0
mov ecx, dword [esi + 0x238]
mov dword [esi + 0x1c4], ecx
je 0x47476c
mov eax, 1
mov dword [esi + 0x204], eax
mov dword [esi + 0x208], eax
mov eax, dword [esi + 0x57c]
cmp dword [esi + 0x578], eax
je 0x47476c
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.00402800
push ebx
push edi
mov ecx, esi
call fcn.0046a670
add ebx, ebx
xor edi, edi
mov dword [esp + 0x24], ebx
test ebx, ebx
jle 0x474835
cmp edi, dword [esp + 0x88]
jbe 0x4747c4
call fcn.00496353
cmp dword [esp + 0x8c], 0x10
mov eax, dword [esp + 0x78]
jae 0x4747d6
lea eax, [esp + 0x78]
mov cl, byte [eax + edi]
lea ebx, [edi + 1]
mov byte [esp + 0x14], cl
cmp ebx, dword [esp + 0x88]
jbe 0x4747ee
call fcn.00496353
cmp dword [esp + 0x8c], 0x10
mov eax, dword [esp + 0x78]
jae 0x474800
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.0046fab0
mov edx, dword [esi + 0xc8]
add edx, dword [esi + 0x4d4]
add edi, 2
add dword [esi + 0x1c4], edx
cmp edi, dword [esp + 0x24]
jl 0x4747b6
mov eax, dword [esp + 0x20]
mov dword [esi + 0x570], eax
mov dword [esi + 0x214], 1
jmp 0x474add
cmp dword [esi + 0x1b8], 0
jne 0x47488e
cmp dword [esi + 0x20c], 0
je 0x47488e
mov ecx, dword [esp + 0xc0]
push ebp
push ecx
mov ecx, esi
call fcn.004694e0
test eax, eax
je 0x47488e
mov edx, dword [esp + 0xcc]
sub dword [esi + 0x30c], edx
mov dword [esp + 0x18], 1
jmp 0x474add
lea eax, [esp + 0x14]
mov ebx, 1
push eax
mov ecx, esi
mov dword [esi + 0x20c], ebx
call fcn.00469f10
mov ecx, dword [esp + 0xc0]
push ecx
push ebp
mov ecx, esi
call fcn.00474040
test eax, eax
je 0x4748cf
mov edx, dword [esp + 0xcc]
sub dword [esi + 0x30c], edx
mov dword [esp + 0x18], ebx
jmp 0x474add
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.0046fab0
mov ecx, esi
call fcn.00469850
movzx ecx, byte [esi + 0xd15]
xor cl, byte [esp + 0x14]
lea edi, [esi + 0x1cc]
movzx edx, cl
push edx
push ebx
mov ecx, edi
call fcn.00402750
push 0x30
push ebx
mov ecx, edi
call fcn.00402750
mov al, byte [esi + 0x8c0]
add al, byte [esi + 0xd15]
xor al, byte [esp + 0x15]
movzx ecx, al
push ecx
push ebx
mov ecx, edi
call fcn.00402750
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 0x474a10
mov eax, dword [esi + 0x4d8]
add eax, dword [esi + 0x1c8]
add eax, dword [esi + 0xcc]
cmp eax, dword [esi + 0x240]
jl 0x47498b
mov ecx, dword [esi + 0x238]
mov dword [esi + 0x1c4], ecx
mov ecx, esi
call fcn.00434900
mov edx, dword [esi + 0x1bc]
cmp edx, dword [esi + 0xb4]
jge 0x4749d8
mov ecx, esi
call fcn.00469720
mov eax, dword [esi + 0x1b8]
lea ecx, [eax + 3]
cmp dword [esp + 0x28], ecx
jg 0x4749c2
mov edx, dword [esi + 0x4d8]
mov eax, dword [esi + 0x4d4]
push edx
push eax
jmp 0x4746f0
cmp dword [esi + 0x56c], ebx
jne 0x474a00
add eax, 2
mov dword [esi + 0x1b8], eax
jmp 0x474add
mov ecx, dword [esi + 0x4d8]
mov edx, dword [esi + 0x4d4]
push ecx
push edx
mov ecx, esi
call fcn.004695e0
mov eax, dword [esi + 0x238]
mov ecx, esi
mov dword [esi + 0x1c4], eax
call fcn.00434900
add dword [esi + 0x1b8], 2
mov dword [esp + 0x18], ebx
jmp 0x474add
mov edx, dword [esi + 0x1b8]
lea ebx, [edx + 3]
cmp dword [esp + 0x28], ebx
jg 0x474ac4
mov ecx, dword [esi + 0x4d8]
mov edx, dword [esi + 0x4d4]
push ecx
push edx
mov ecx, esi
call fcn.004695e0
mov ecx, esi
call fcn.00469720
mov eax, dword [esp + 0x1c]
mov cl, byte [eax + 0x408]
push 0xfffffffffffffffe
mov byte [esi + 0x1b4], cl
push 1
mov ecx, edi
call fcn.00402750
push 0x30
push 1
mov ecx, edi
call fcn.00402750
push 0xfffffffffffffffe
push 1
mov ecx, edi
call fcn.00402750
mov edx, dword [esi + 0x1bc]
cmp edx, dword [esi + 0xb4]
jle 0x474a85
mov ecx, esi
call fcn.00434900
mov eax, dword [esi + 0x4d8]
add eax, dword [esi + 0x1c8]
add eax, dword [esi + 0xcc]
cmp eax, dword [esi + 0x240]
jl 0x4746f7
mov ecx, dword [esi + 0x238]
mov dword [esi + 0x1c4], ecx
mov ecx, esi
call fcn.00434900
xor eax, eax
mov dword [esi + 0x1b8], eax
mov dword [esp + 0x18], eax
jmp 0x474add
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 0x4743d0
cmp dword [esi + 0x56c], 0
jne 0x4743d0
cmp dword [esi + 0x578], 0
je 0x4743d0
mov edx, dword [esi + 0xde4]
mov eax, dword [edx]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push 0
push eax
call edx
mov ecx, esi
call fcn.004698a0
cmp dword [esp + 0x18], 0
je 0x474be8
cmp dword [esp + 0x8c], 0x10
jb 0x474b3f
mov eax, dword [esp + 0x78]
push eax
call fcn.00485196
add esp, 4
cmp dword [esp + 0xa8], 0x10
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], 0
mov byte [esp + 0x78], 0
jb 0x474b74
mov ecx, dword [esp + 0x94]
push ecx
call fcn.00485196
add esp, 4
mov eax, 1
jmp 0x474c39
mov eax, dword [esi + 0xde4]
mov eax, dword [eax]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x50]
push eax
call edx
mov ecx, esi
call fcn.004698a0
mov esi, 0x10
cmp dword [esp + 0x8c], esi
jb 0x474bb0
mov eax, dword [esp + 0x78]
push eax
call fcn.00485196
add esp, 4
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], 0
mov byte [esp + 0x78], 0
cmp dword [esp + 0xa8], esi
jb 0x474be4
mov ecx, dword [esp + 0x94]
push ecx
call fcn.00485196
add esp, 4
mov eax, edi
jmp 0x474c39
mov esi, 0x10
cmp dword [esp + 0x8c], esi
jb 0x474c03
mov edx, dword [esp + 0x78]
push edx
call fcn.00485196
add esp, 4
mov dword [esp + 0x8c], 0xf
mov dword [esp + 0x88], 0
mov byte [esp + 0x78], 0
cmp dword [esp + 0xa8], esi
jb 0x474c37
mov eax, dword [esp + 0x94]
push eax
call fcn.00485196
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.00496795
add esp, 0xa8
ret 0x14