Function at 0x45bc60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fb31c
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x16c44
call fcn.004f2630
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
push 1
lea ecx, [ebp - 0x4cc]
mov dword [ebp - 4], esi
call fcn.004f0653
lea eax, [ebp - 0x104]
mov byte [ebp - 4], 1
push eax
call fcn.004ab6e0
add esp, 4
lea ecx, [ebp - 0x3c]
push ecx
call fcn.00401350
add esp, 4
lea edx, [ebp - 0x14]
lea eax, [ebp - 0x16c54]
mov dword [ebp - 0x14], esi
push edx
push eax
call fcn.0045bb20
add esp, 8
lea ecx, [ebp - 0x84]
push 1
call fcn.004f0653
push 1
lea ecx, [ebp - 0x514]
mov byte [ebp - 4], 2
call fcn.004f0653
mov ecx, dword [0x4fe4e8]
mov byte [ebp - 4], 3
push ecx
push 8
push str.c:endpcacheprocess_log.txt
lea ecx, [ebp - 0x84]
call fcn.004f0727
lea edx, [ebp - 0x594]
push 0x80
push edx
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.driverspartmgr.sys
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x594]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0xd8a43c
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
push 0xe56b50
and ecx, 3
lea eax, [ebp - 0x594]
push 0xc43b10
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.004b7fe0
add esp, 0x10
lea ecx, [ebp - 0x594]
push 0xdd7fec
push ecx
call fcn.004b83e0
add esp, 8
push 0x100
lea edx, [ebp - 0x654]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
xor ebx, ebx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], ebx
cmp ebx, eax
jge 0x45cd41
mov eax, ebx
or ecx, 0xffffffff
shl eax, 8
lea edx, [ebp - 0x484]
push str.CCmFILEMMeDu.SYS
lea edi, [ebp + eax - 0x16c54]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [ebp - 4], 4
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x484]
push ecx
call fcn.004f2d80
add esp, 8
test eax, eax
je 0x45bdf6
mov byte [ebp - 4], 3
inc ebx
jmp 0x45bd96
lea edx, [ebp - 0x484]
push 0x52155c
push edx
call fcn.004f2d80
add esp, 8
test eax, eax
je 0x45be15
mov byte [ebp - 4], 3
inc ebx
jmp 0x45bd96
push 0xd06d30
push 0xdb1c8c
lea eax, [ebp - 0x484]
push 0xe56ad0
push eax
call fcn.004c1240
add esp, 0x10
lea ecx, [ebp - 0x484]
movsx esi, ax
push 0xd53b2c
push ecx
call fcn.004b83e0
add esp, 8
cmp esi, 6
jle 0x45bf26
push 0xe56ad0
push 0xc43b10
call fcn.004f61e0
add esp, 8
test eax, eax
jne 0x45bf26
push 0xdb1c8c
push 0xe56b50
call fcn.004f61e0
add esp, 8
test eax, eax
jne 0x45bf26
push 0xd06d30
push 0xd8a43c
call fcn.004f61e0
add esp, 8
test eax, eax
jne 0x45bf26
push 0xd53b2c
push 0xdd7fec
call fcn.004f61e0
add esp, 8
test eax, eax
jne 0x45bf26
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x484]
push 0x518abc
push edx
lea ecx, [ebp - 0x3c]
push eax
push ecx
call fcn.004fa6c0
add esp, 4
lea edx, [ebp - 0x104]
push eax
push edx
call fcn.004fa6c0
add esp, 4
push eax
lea eax, [ebp - 0x384]
push 0x521530
push eax
call fcn.004f175f
add esp, 0x1c
lea ecx, [ebp - 0x384]
push ecx
lea ecx, [ebp - 0x78]
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
mov byte [ebp - 4], 3
inc ebx
jmp 0x45bd96
lea edx, [ebp - 0x484]
push edx
call fcn.004bd410
add esp, 4
push 0x5144fc
push eax
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x45cc9e
lea eax, [ebp - 0x484]
push eax
call fcn.004abec0
add esp, 4
cmp eax, 1
jne 0x45cc20
lea ecx, [ebp - 0x614]
lea edx, [ebp - 0x484]
push ecx
push edx
call fcn.004b83e0
add esp, 8
push 0x518a74
push 0xe56ad0
call fcn.004f2d80
add esp, 8
test eax, eax
jne 0x45c01e
push 0x514ba8
push 0xe56ad0
call fcn.004f2d80
add esp, 8
test eax, eax
je 0x45c01e
lea eax, [ebp - 0x614]
push eax
push 0xd06d30
push 0xe56ad0
push 0x518a68
call fcn.004fa6c0
mov edx, dword [ebp - 0x14]
add esp, 4
lea ecx, [ebp - 0x484]
push eax
push ecx
lea eax, [ebp - 0x3c]
push edx
push eax
call fcn.004fa6c0
add esp, 4
lea ecx, [ebp - 0x104]
push eax
push ecx
call fcn.004fa6c0
add esp, 4
lea edx, [ebp - 0x384]
push eax
push 0x5214e0
push edx
call fcn.004f175f
mov ecx, dword [0xe56d38]
mov eax, dword [0xe56d24]
add esp, 0x28
inc ecx
inc eax
mov dword [0xe56d38], ecx
mov dword [0xe56d24], eax
jmp 0x45c079
lea eax, [ebp - 0x614]
push eax
push 0xd06d30
push 0xe56ad0
push 0x518a68
call fcn.004fa6c0
mov edx, dword [ebp - 0x14]
add esp, 4
lea ecx, [ebp - 0x484]
push eax
push ecx
lea eax, [ebp - 0x3c]
push edx
push eax
call fcn.004fa6c0
add esp, 4
lea ecx, [ebp - 0x104]
push eax
push ecx
call fcn.004fa6c0
add esp, 4
lea edx, [ebp - 0x384]
push eax
push 0x5214a0
push edx
call fcn.004f175f
add esp, 0x28
mov eax, dword [0xe56d94]
test eax, eax
jne 0x45c10e
mov eax, dword [0xe56db0]
mov byte [ebp - 0x185], 0
test eax, eax
jne 0x45c0ea
mov eax, dword [0xe56dbc]
mov ecx, dword [ebp + 0x1b4]
mov edx, dword [ebp + 0x1b0]
test eax, eax
lea eax, [ebp - 0x384]
push eax
push ecx
push edx
jne 0x45c0cd
sub esp, 0x1a8
mov ecx, 0x6a
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404170
jmp 0x45c0e4
sub esp, 0x1a8
mov ecx, 0x6a
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404560
add esp, 0x1b4
lea eax, [ebp - 0x384]
lea ecx, [ebp - 0x78]
push eax
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
cmp dword [0xe56d94], 1
jne 0x45c1e3
lea ecx, [ebp - 0x384]
push str.Microsoft
push ecx
call fcn.004f2d80
add esp, 8
test eax, eax
jne 0x45c1e3
mov byte [ebp - 0x185], al
mov eax, dword [0xe56db0]
test eax, eax
jne 0x45c1b7
mov eax, dword [0xe56dbc]
test eax, eax
jne 0x45c183
mov ebx, dword [ebp + 0x1b4]
mov eax, dword [ebp + 0x1b0]
lea edx, [ebp - 0x384]
mov ecx, 0x6a
push edx
push ebx
push eax
lea esi, [ebp + 8]
sub esp, 0x1a8
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404170
add esp, 0x1b4
jmp 0x45c1bd
mov ebx, dword [ebp + 0x1b4]
mov edx, dword [ebp + 0x1b0]
lea ecx, [ebp - 0x384]
lea esi, [ebp + 8]
push ecx
push ebx
push edx
mov ecx, 0x6a
sub esp, 0x1a8
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404560
add esp, 0x1b4
jmp 0x45c1bd
mov ebx, dword [ebp + 0x1b4]
lea eax, [ebp - 0x384]
lea ecx, [ebp - 0x78]
push eax
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
jmp 0x45c1e9
mov ebx, dword [ebp + 0x1b4]
lea edi, [ebp - 0x384]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x854]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x514ba8
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x854]
push ecx
call fcn.004f2d80
add esp, 8
test eax, eax
je 0x45c307
lea edx, [ebp - 0x484]
push edx
call fcn.0044a870
add esp, 4
lea ecx, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x484]
push eax
push ecx
call fcn.004fa6c0
add esp, 4
lea edx, [ebp - 0x104]
push eax
push edx
call fcn.004fa6c0
add esp, 4
push eax
lea eax, [ebp - 0x384]
push 0x521464
push eax
call fcn.004f175f
mov eax, dword [0xe56db0]
add esp, 0x18
test eax, eax
mov byte [ebp - 0x185], 0
jne 0x45c2e3
mov eax, dword [0xe56dbc]
test eax, eax
jne 0x45c2b7
mov edx, dword [ebp + 0x1b0]
lea ecx, [ebp - 0x384]
push ecx
push ebx
push edx
mov ecx, 0x6a
sub esp, 0x1a8
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404170
jmp 0x45c2dd
mov ecx, dword [ebp + 0x1b0]
lea eax, [ebp - 0x384]
push eax
push ebx
push ecx
mov ecx, 0x6a
sub esp, 0x1a8
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404560
add esp, 0x1b4
lea edx, [ebp - 0x384]
lea ecx, [ebp - 0x78]
push edx
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
lea eax, [ebp - 0x854]
push 0x518a68
push eax
call fcn.004f2d80
add esp, 8
test eax, eax
je 0x45c661
lea ecx, [ebp - 0x854]
push str.Microsoft
push ecx
call fcn.004f2d80
add esp, 8
test eax, eax
je 0x45c661
lea edx, [ebp - 0x484]
push edx
call fcn.0044a870
mov esi, eax
mov eax, dword [0xe56d94]
add esp, 4
cmp eax, 1
jne 0x45c3a9
push 0x518208
push esi
call fcn.004f2d80
add esp, 8
test eax, eax
je 0x45c3a9
lea eax, [ebp - 0x484]
lea ecx, [ebp - 0x3c]
push eax
push ecx
call fcn.004fa6c0
add esp, 4
lea edx, [ebp - 0x104]
push eax
push edx
call fcn.004fa6c0
add esp, 4
push eax
lea eax, [ebp - 0x384]
push 0x521438
push eax
call fcn.004f175f
add esp, 0x14
jmp 0x45c465
push 0x5147b4
push esi
call fcn.004f2d80
add esp, 8
test eax, eax
jne 0x45c489
lea edx, [ebp - 0x484]
push esi
lea eax, [ebp - 0x3c]
push edx
push eax
call fcn.004fa6c0
add esp, 4
lea ecx, [ebp - 0x104]
push eax
push ecx
call fcn.004fa6c0
add esp, 4
lea edx, [ebp - 0x384]
push eax
push 0x521464
push edx
call fcn.004f175f
mov eax, dword [0xe56db0]
add esp, 0x18
test eax, eax
mov byte [ebp - 0x185], 0
jne 0x45c465
mov eax, dword [0xe56dbc]
test eax, eax
jne 0x45c439
mov ecx, dword [ebp + 0x1b0]
lea eax, [ebp - 0x384]
push eax
push ebx
push ecx
mov ecx, 0x6a
sub esp, 0x1a8
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404170
jmp 0x45c45f
mov eax, dword [ebp + 0x1b0]
lea edx, [ebp - 0x384]
push edx
push ebx
push eax
mov ecx, 0x6a
sub esp, 0x1a8
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404560
add esp, 0x1b4
lea ecx, [ebp - 0x384]
push ecx
lea ecx, [ebp - 0x78]
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
lea edx, [ebp - 0x384]
push 0x5181d0
push edx
call fcn.004f2d80
add esp, 8
test eax, eax
je 0x45c575
lea eax, [ebp - 0x484]
lea ecx, [ebp - 0x3c]
push eax
push ecx
mov byte [ebp - 0x384], 0
call fcn.004fa6c0
add esp, 4
lea edx, [ebp - 0x104]
push eax
push edx
call fcn.004fa6c0
add esp, 4
push eax
lea eax, [ebp - 0x384]
push 0x5213e0
push eax
call fcn.004f175f
mov eax, dword [0xe56db0]
add esp, 0x14
test eax, eax
mov byte [ebp - 0x185], 0
jne 0x45c551
mov eax, dword [0xe56dbc]
test eax, eax
jne 0x45c525
mov edx, dword [ebp + 0x1b0]
lea ecx, [ebp - 0x384]
push ecx
push ebx
push edx
mov ecx, 0x6a
sub esp, 0x1a8
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404170
jmp 0x45c54b
mov ecx, dword [ebp + 0x1b0]
lea eax, [ebp - 0x384]
push eax
push ebx
push ecx
mov ecx, 0x6a
sub esp, 0x1a8
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404560
add esp, 0x1b4
lea edx, [ebp - 0x384]
lea ecx, [ebp - 0x78]
push edx
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
lea eax, [ebp - 0x384]
push 0x517554
push eax
call fcn.004f2d80
add esp, 8
test eax, eax
je 0x45c661
lea ecx, [ebp - 0x484]
lea edx, [ebp - 0x3c]
push ecx
push edx
mov byte [ebp - 0x384], 0
call fcn.004fa6c0
add esp, 4
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.004fa6c0
add esp, 4
lea ecx, [ebp - 0x384]
push eax
push 0x5213e0
push ecx
call fcn.004f175f
mov eax, dword [0xe56db0]
add esp, 0x14
test eax, eax
mov byte [ebp - 0x185], 0
jne 0x45c63d
mov eax, dword [0xe56dbc]
test eax, eax
jne 0x45c611
mov eax, dword [ebp + 0x1b0]
lea edx, [ebp - 0x384]
push edx
push ebx
push eax
mov ecx, 0x6a
sub esp, 0x1a8
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404170
jmp 0x45c637
mov edx, dword [ebp + 0x1b0]
lea ecx, [ebp - 0x384]
push ecx
push ebx
push edx
mov ecx, 0x6a
sub esp, 0x1a8
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404560
add esp, 0x1b4
lea eax, [ebp - 0x384]
lea ecx, [ebp - 0x78]
push eax
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
lea ecx, [ebp - 0x854]
push 0x518a68
push ecx
call fcn.004f2d80
add esp, 8
test eax, eax
je 0x45c863
lea edx, [ebp - 0x854]
push str.DDK_provider
push edx
call fcn.004f2d80
add esp, 8
test eax, eax
je 0x45c863
lea eax, [ebp - 0x484]
push eax
call fcn.0044a870
add esp, 4
mov ebx, eax
lea ecx, [ebp - 0x484]
lea edx, [ebp - 0x3c]
push ebx
push ecx
push edx
call fcn.004fa6c0
add esp, 4
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.004fa6c0
add esp, 4
lea ecx, [ebp - 0x384]
push eax
push 0x521464
push ecx
call fcn.004f175f
mov eax, dword [0xe56db0]
add esp, 0x18
test eax, eax
mov byte [ebp - 0x185], 0
jne 0x45c747
mov eax, dword [0xe56dbc]
mov ecx, dword [ebp + 0x1b0]
test eax, eax
mov eax, dword [ebp + 0x1b4]
lea edx, [ebp - 0x384]
push edx
push eax
push ecx
jne 0x45c72a
sub esp, 0x1a8
mov ecx, 0x6a
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404170
jmp 0x45c741
sub esp, 0x1a8
mov ecx, 0x6a
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404560
add esp, 0x1b4
lea edx, [ebp - 0x384]
lea ecx, [ebp - 0x78]
push edx
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
lea eax, [ebp - 0x384]
push 0x5181d0
push eax
call fcn.004f2d80
add esp, 8
test eax, eax
je 0x45c863
push 0x5180e8
push ebx
call fcn.004f2d80
add esp, 8
test eax, eax
jne 0x45c863
lea ecx, [ebp - 0x484]
lea edx, [ebp - 0x3c]
push ecx
push edx
mov byte [ebp - 0x384], al
call fcn.004fa6c0
add esp, 4
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.004fa6c0
add esp, 4
lea ecx, [ebp - 0x384]
push eax
push 0x5213e0
push ecx
call fcn.004f175f
mov eax, dword [0xe56db0]
add esp, 0x14
test eax, eax
mov byte [ebp - 0x185], 0
jne 0x45c83f
mov eax, dword [0xe56dbc]
mov ecx, dword [ebp + 0x1b0]
test eax, eax
mov eax, dword [ebp + 0x1b4]
lea edx, [ebp - 0x384]
push edx
push eax
push ecx
jne 0x45c822
sub esp, 0x1a8
mov ecx, 0x6a
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404170
jmp 0x45c839
sub esp, 0x1a8
mov ecx, 0x6a
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404560
add esp, 0x1b4
lea edx, [ebp - 0x384]
lea ecx, [ebp - 0x78]
push edx
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
lea eax, [ebp - 0x854]
push 0x514ba8
push eax
call fcn.004f2d80
add esp, 8
test eax, eax
je 0x45c962
lea ecx, [ebp - 0x384]
push 0x5181d0
push ecx
call fcn.004f2d80
add esp, 8
test eax, eax
je 0x45c962
lea edx, [ebp - 0x484]
lea eax, [ebp - 0x3c]
push edx
push eax
mov byte [ebp - 0x384], 0
call fcn.004fa6c0
add esp, 4
lea ecx, [ebp - 0x104]
push eax
push ecx
call fcn.004fa6c0
add esp, 4
lea edx, [ebp - 0x384]
push eax
push 0x521394
push edx
call fcn.004f175f
mov eax, dword [0xe56db0]
add esp, 0x14
test eax, eax
mov byte [ebp - 0x185], 0
jne 0x45c93e
mov eax, dword [0xe56dbc]
mov ecx, dword [ebp + 0x1b4]
mov edx, dword [ebp + 0x1b0]
test eax, eax
lea eax, [ebp - 0x384]
push eax
push ecx
push edx
jne 0x45c921
sub esp, 0x1a8
mov ecx, 0x6a
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404170
jmp 0x45c938
sub esp, 0x1a8
mov ecx, 0x6a
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404560
add esp, 0x1b4
lea eax, [ebp - 0x384]
lea ecx, [ebp - 0x78]
push eax
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
call fcn.004c1e20
cmp ax, 1
jne 0x45ca44
mov ecx, 0x518a68
test ecx, ecx
jne 0x45ca44
lea edx, [ebp - 0x484]
lea eax, [ebp - 0x3c]
push edx
push eax
mov byte [ebp - 0x384], cl
call fcn.004fa6c0
add esp, 4
lea ecx, [ebp - 0x104]
push eax
push ecx
call fcn.004fa6c0
add esp, 4
lea edx, [ebp - 0x384]
push eax
push 0x52133c
push edx
call fcn.004f175f
mov eax, dword [0xe56db0]
add esp, 0x14
test eax, eax
mov byte [ebp - 0x185], 0
jne 0x45ca20
mov eax, dword [0xe56dbc]
mov ecx, dword [ebp + 0x1b4]
mov edx, dword [ebp + 0x1b0]
test eax, eax
lea eax, [ebp - 0x384]
push eax
push ecx
push edx
jne 0x45ca03
sub esp, 0x1a8
mov ecx, 0x6a
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404170
jmp 0x45ca1a
sub esp, 0x1a8
mov ecx, 0x6a
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404560
add esp, 0x1b4
lea eax, [ebp - 0x384]
lea ecx, [ebp - 0x78]
push eax
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
call fcn.004c1f70
cmp ax, 1
jne 0x45cb26
mov ecx, 0x514ba8
test ecx, ecx
jne 0x45cb26
lea edx, [ebp - 0x484]
lea eax, [ebp - 0x3c]
push edx
push eax
mov byte [ebp - 0x384], cl
call fcn.004fa6c0
add esp, 4
lea ecx, [ebp - 0x104]
push eax
push ecx
call fcn.004fa6c0
add esp, 4
lea edx, [ebp - 0x384]
push eax
push 0x5212e4
push edx
call fcn.004f175f
mov eax, dword [0xe56db0]
add esp, 0x14
test eax, eax
mov byte [ebp - 0x185], 0
jne 0x45cb02
mov eax, dword [0xe56dbc]
mov ecx, dword [ebp + 0x1b4]
mov edx, dword [ebp + 0x1b0]
test eax, eax
lea eax, [ebp - 0x384]
push eax
push ecx
push edx
jne 0x45cae5
sub esp, 0x1a8
mov ecx, 0x6a
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404170
jmp 0x45cafc
sub esp, 0x1a8
mov ecx, 0x6a
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404560
add esp, 0x1b4
lea eax, [ebp - 0x384]
lea ecx, [ebp - 0x78]
push eax
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
call fcn.004c20a0
cmp ax, 1
jne 0x45cc09
mov ecx, 0x5180e8
test ecx, ecx
je 0x45cc09
lea edx, [ebp - 0x484]
lea eax, [ebp - 0x3c]
push edx
push eax
mov byte [ebp - 0x384], 0
call fcn.004fa6c0
add esp, 4
lea ecx, [ebp - 0x104]
push eax
push ecx
call fcn.004fa6c0
add esp, 4
lea edx, [ebp - 0x384]
push eax
push 0x52128c
push edx
call fcn.004f175f
mov eax, dword [0xe56db0]
add esp, 0x14
test eax, eax
mov byte [ebp - 0x185], 0
jne 0x45cbe5
mov eax, dword [0xe56dbc]
mov ecx, dword [ebp + 0x1b4]
mov edx, dword [ebp + 0x1b0]
test eax, eax
lea eax, [ebp - 0x384]
push eax
push ecx
push edx
jne 0x45cbc8
sub esp, 0x1a8
mov ecx, 0x6a
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404170
jmp 0x45cbdf
sub esp, 0x1a8
mov ecx, 0x6a
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404560
add esp, 0x1b4
lea eax, [ebp - 0x384]
lea ecx, [ebp - 0x78]
push eax
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
mov dword [ebp - 0x1c], 1
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 4], 3
inc ebx
jmp 0x45bd96
push 0x517f78
call fcn.004fa6c0
mov edx, dword [ebp - 0x14]
add esp, 4
lea ecx, [ebp - 0x484]
push eax
push ecx
lea eax, [ebp - 0x3c]
push edx
push eax
call fcn.004fa6c0
add esp, 4
lea ecx, [ebp - 0x104]
push eax
push ecx
call fcn.004fa6c0
add esp, 4
push eax
push 0x521530
lea edx, [ebp - 0x384]
push edx
call fcn.004f175f
add esp, 0x1c
lea eax, [ebp - 0x384]
lea ecx, [ebp - 0x78]
push eax
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 4], 3
inc ebx
jmp 0x45bd96
push 0x518abc
call fcn.004fa6c0
mov edx, dword [ebp - 0x14]
add esp, 4
lea ecx, [ebp - 0x484]
push eax
push ecx
lea eax, [ebp - 0x3c]
push edx
push eax
call fcn.004fa6c0
add esp, 4
lea ecx, [ebp - 0x104]
push eax
push ecx
call fcn.004fa6c0
add esp, 4
push eax
push 0x52125c
jmp 0x45cc5b
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x45ce0a
lea ecx, [ebp - 0x3c]
push 0x521204
push ecx
call fcn.004fa6c0
add esp, 4
lea edx, [ebp - 0x104]
push eax
push edx
call fcn.004fa6c0
add esp, 4
push eax
lea eax, [ebp - 0x384]
push 0x5190b4
push eax
call fcn.004f175f
mov eax, dword [0xe56db0]
add esp, 0x14
test eax, eax
mov byte [ebp - 0x185], 0
jne 0x45cde6
mov eax, dword [0xe56dbc]
mov edx, dword [ebp + 0x1b4]
lea ecx, [ebp - 0x384]
test eax, eax
mov eax, dword [ebp + 0x1b0]
push ecx
push edx
push eax
jne 0x45cdc9
sub esp, 0x1a8
mov ecx, 0x6a
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404170
jmp 0x45cde0
sub esp, 0x1a8
mov ecx, 0x6a
lea esi, [ebp + 8]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
call fcn.00404560
add esp, 0x1b4
lea ecx, [ebp - 0x384]
push ecx
lea ecx, [ebp - 0x78]
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
lea ecx, [ebp - 0x84]
call fcn.004f076e
lea ecx, [ebp - 0x500]
mov byte [ebp - 4], 2
call fcn.004f0714
lea ecx, [ebp - 0x500]
call fcn.004f05fb
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.004f0714
lea ecx, [ebp - 0x70]
call fcn.004f05fb
lea ecx, [ebp - 0x4b8]
mov byte [ebp - 4], 0
call fcn.004f0714
lea ecx, [ebp - 0x4b8]
call fcn.004f05fb
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret