Function at 0x403502
Capabilities:
Contain obfuscated stackstrings
Create process on windows
Enumerate process modules
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3d8
mov eax, dword [0x40e270]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x3a0], 0x224
call fcn.004024a1
push dword [ebp + 0xc]
push 8
pop esi
push esi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
xor ebx, ebx
cmp edi, 0xffffffff
je 0x4035d0
lea eax, [ebp - 0x3a0]
push eax
push edi
call sub.KERNEL32.dll_Module32First
mov dword [ebp - 0x3ac], eax
lea eax, [ebp - 0x380]
push str.wgprotect
push eax
call fcn.00404ed0
test eax, eax
pop ecx
pop ecx
je 0x40358e
cmp dword [0x40e94c], 5
jle 0x403588
push ebx
push str.wgprotectex.exe
call dword [sym.imp.KERNEL32.dll_WinExec]
cmp eax, 0x1f
jle 0x40358e
push ebx
call fcn.004057e3
inc dword [0x40e94c]
cmp dword [ebp - 0x3ac], ebx
je 0x4035d0
lea eax, [ebp - 0x380]
push eax
push 0x40c318
call fcn.00401000
lea eax, [ebp - 0x380]
push eax
push str.gf.dll
call fcn.0040b7da
add esp, 0x10
test eax, eax
je 0x4035d0
lea eax, [ebp - 0x3a0]
push eax
push edi
call sub.KERNEL32.dll_Module32Next
test eax, eax
jne 0x403596
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
push ebx
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
mov dword [ebp - 0x3a4], eax
je 0x4042c0
xor eax, eax
lea edi, [ebp - 0x3b0]
mov dword [ebp - 0x3b4], ebx
stosd dword es:[edi], eax
mov edi, 0x40e248
mov dword [ebp - 0x3a8], ebx
push ebx
push 0xe
push edi
push dword [ebp - 0x388]
push dword [ebp - 0x38c]
push dword [ebp - 0x3a4]
call fcn.00402517
add esp, 0x18
cmp eax, 0xffffffff
mov dword [ebp - 0x3b4], eax
jne 0x4036fb
add dword [ebp - 0x3a8], 0xf
add edi, 0xf
cmp dword [ebp - 0x3a8], 0x1e
jb 0x40360e
mov edi, 0x40e238
mov dword [ebp - 0x3a8], ebx
push ebx
push 0xc
push edi
push dword [ebp - 0x388]
push dword [ebp - 0x38c]
push dword [ebp - 0x3a4]
call fcn.00402517
add esp, 0x18
cmp eax, 0xffffffff
mov dword [ebp - 0x3b4], eax
jne 0x4036fb
add dword [ebp - 0x3a8], 0xd
add edi, 0xd
cmp dword [ebp - 0x3a8], 0xd
jb 0x403659
mov edi, 0x40e158
mov dword [ebp - 0x3a8], ebx
push ebx
push 0x10
push edi
push dword [ebp - 0x388]
push dword [ebp - 0x38c]
push dword [ebp - 0x3a4]
call fcn.00402517
add esp, 0x18
cmp eax, 0xffffffff
mov dword [ebp - 0x3b4], eax
jne 0x4036fb
add dword [ebp - 0x3a8], 0x11
add edi, 0x11
cmp dword [ebp - 0x3a8], 0xdd
jb 0x4036a0
push dword [ebp - 0x3a4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00402951
jmp 0x4042d3
push str._GetService_GF_Util__YAJABU_GUID__PA_WPAPAX_Z
push dword [ebp - 0x38c]
push dword [ebp - 0x3a4]
call fcn.004026e8
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x3b0], eax
je 0x404165
push 0x1c
lea eax, [ebp - 0x3d8]
push eax
mov dword [ebp - 0x3a8], ebx
push ebx
jmp 0x4037af
push dword [ebp - 0x3c4]
lea eax, [ebp - 0x38]
push dword [ebp - 0x3cc]
push dword [ebp - 0x3d8]
push dword [ebp - 0x3d4]
push str.0x_p__0x_p___u__0x_x_r_n
push eax
call fcn.00405b8b
lea eax, [ebp - 0x38]
push eax
push 0x40c1bc
call fcn.00401000
push 1
push esi
lea eax, [ebp - 0x3b4]
push eax
push dword [ebp - 0x3cc]
push dword [ebp - 0x3d8]
push dword [ebp - 0x3a4]
call fcn.00402517
mov edi, eax
add esp, 0x38
cmp edi, 0xffffffff
jne 0x4037c3
mov eax, dword [ebp - 0x3a8]
add eax, dword [ebp - 0x3cc]
push 0x1c
lea ecx, [ebp - 0x3d8]
push ecx
mov dword [ebp - 0x3a8], eax
push eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
cmp eax, 0x1c
je 0x403734
jmp 0x404165
push edi
push str.before_offset_dwTagAddr:_x_n
call fcn.00401000
pop ecx
pop ecx
mov ecx, 0x3f0
push 0x14
pop eax
mov edx, 0xfffffe40
mov dword [ebp - 0x6c], esi
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x20], esi
mov dword [ebp - 0xc], esi
mov esi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov dword [ebp - 0x7c], 0xfffffff8
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], 0x10
mov dword [ebp - 0x70], 4
mov dword [ebp - 0x68], ebx
mov dword [ebp - 0x64], edx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], edx
mov dword [ebp - 0x4c], 0x3f8
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], 0x120
mov dword [ebp - 0x3c], 0xfffffe70
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], 0x118
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0xfffffed0
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], eax
mov dword [ebp + 0xc], ebx
mov eax, dword [ebp + 0xc]
cmp eax, 2
mov dword [ebp - 0x3bc], ebx
jne 0x403873
add edi, 0x18
jmp 0x403881
cmp eax, 1
jne 0x40387d
add edi, 0x1c
jmp 0x403881
add edi, dword [ebp + eax*4 - 0x7c]
push ebx
push 4
lea eax, [ebp - 0x3bc]
push eax
push edi
push dword [ebp - 0x3a4]
call esi
test eax, eax
je 0x404165
mov edi, dword [ebp - 0x3bc]
cmp edi, ebx
je 0x404165
cmp dword [ebp + 0xc], 3
jne 0x4038b6
mov dword [ebp - 0x3a8], edi
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 5
jl 0x403860
push ebx
push 0x10
push dword [ebp + 8]
mov dword [ebp - 0x3b4], edi
push edi
push dword [ebp - 0x3a4]
call esi
test eax, eax
je 0x4038e5
push dword [ebp + 8]
call fcn.004026b8
test eax, eax
pop ecx
jne 0x40395b
mov edi, dword [ebp - 0x3a8]
mov dword [ebp + 0xc], 5
cmp dword [ebp + 0xc], 6
mov dword [ebp - 0x3ac], ebx
jne 0x403906
sub edi, 0x490
jmp 0x40390d
mov eax, dword [ebp + 0xc]
add edi, dword [ebp + eax*4 - 0x7c]
push ebx
push 4
lea eax, [ebp - 0x3ac]
push eax
push edi
push dword [ebp - 0x3a4]
call esi
test eax, eax
je 0x403933
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0xa
mov edi, dword [ebp - 0x3ac]
jl 0x4038f2
push ebx
push 0x10
push dword [ebp + 8]
push edi
push dword [ebp - 0x3a4]
call esi
test eax, eax
je 0x40395b
push dword [ebp + 8]
call fcn.004026b8
test eax, eax
pop ecx
je 0x40395b
xor ebx, ebx
inc ebx
jmp 0x404165
push ebx
push 0x10
push dword [ebp + 8]
push edi
push dword [ebp - 0x3a4]
call esi
test eax, eax
je 0x40397b
push dword [ebp + 8]
call fcn.004026b8
test eax, eax
pop ecx
jne 0x4039ed
mov edi, dword [ebp - 0x3b4]
mov dword [ebp + 0xc], 5
cmp dword [ebp + 0xc], 6
mov dword [ebp - 0x3ac], ebx
jne 0x40399c
sub edi, 0x190
jmp 0x4039a3
mov eax, dword [ebp + 0xc]
add edi, dword [ebp + eax*4 - 0x7c]
push ebx
push 4
lea eax, [ebp - 0x3ac]
push eax
push edi
push dword [ebp - 0x3a4]
call esi
test eax, eax
je 0x4039c9
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0xa
mov edi, dword [ebp - 0x3ac]
jl 0x403988
push ebx
push 0x10
push dword [ebp + 8]
push edi
push dword [ebp - 0x3a4]
call esi
test eax, eax
je 0x4039ed
push dword [ebp + 8]
call fcn.004026b8
test eax, eax
pop ecx
jne 0x403953
push ebx
push 0x10
push dword [ebp + 8]
push edi
push dword [ebp - 0x3a4]
call esi
test eax, eax
je 0x403a0d
push dword [ebp + 8]
call fcn.004026b8
test eax, eax
pop ecx
jne 0x403a7f
mov edi, dword [ebp - 0x3b4]
mov dword [ebp + 0xc], 5
cmp dword [ebp + 0xc], 6
mov dword [ebp - 0x3ac], ebx
jne 0x403a2e
sub edi, 0x1c0
jmp 0x403a35
mov eax, dword [ebp + 0xc]
add edi, dword [ebp + eax*4 - 0x7c]
push ebx
push 4
lea eax, [ebp - 0x3ac]
push eax
push edi
push dword [ebp - 0x3a4]
call esi
test eax, eax
je 0x403a5b
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0xa
mov edi, dword [ebp - 0x3ac]
jl 0x403a1a
push ebx
push 0x10
push dword [ebp + 8]
push edi
push dword [ebp - 0x3a4]
call esi
test eax, eax
je 0x403a7f
push dword [ebp + 8]
call fcn.004026b8
test eax, eax
pop ecx
jne 0x403953
push ebx
push 0x10
push dword [ebp + 8]
push edi
push dword [ebp - 0x3a4]
call esi
test eax, eax
je 0x403a9f
push dword [ebp + 8]
call fcn.004026b8
test eax, eax
pop ecx
jne 0x403b11
mov edi, dword [ebp - 0x3b4]
mov dword [ebp + 0xc], 0xa
cmp dword [ebp + 0xc], 6
mov dword [ebp - 0x3ac], ebx
jne 0x403ac0
sub edi, 0x1c0
jmp 0x403ac7
mov eax, dword [ebp + 0xc]
add edi, dword [ebp + eax*4 - 0x7c]
push ebx
push 4
lea eax, [ebp - 0x3ac]
push eax
push edi
push dword [ebp - 0x3a4]
call esi
test eax, eax
je 0x403aed
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0xf
mov edi, dword [ebp - 0x3ac]
jl 0x403aac
push ebx
push 0x10
push dword [ebp + 8]
push edi
push dword [ebp - 0x3a4]
call esi
test eax, eax
je 0x403b11
push dword [ebp + 8]
call fcn.004026b8
test eax, eax
pop ecx
jne 0x403953
push ebx
push 0x10
push dword [ebp + 8]
push edi
push dword [ebp - 0x3a4]
call esi
test eax, eax
je 0x403b31
push dword [ebp + 8]
call fcn.004026b8
test eax, eax
pop ecx
jne 0x403b9d
mov edi, dword [ebp - 0x3b4]
mov dword [ebp + 0xc], 0xa
mov eax, dword [ebp + 0xc]
add edi, dword [ebp + eax*4 - 0x7c]
cmp eax, 0xb
mov dword [ebp - 0x3ac], ebx
jne 0x403b53
sub edi, 8
push ebx
push 4
lea eax, [ebp - 0x3ac]
push eax
push edi
push dword [ebp - 0x3a4]
call esi
test eax, eax
je 0x403b79
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0xf
mov edi, dword [ebp - 0x3ac]
jl 0x403b3e
push ebx
push 0x10
push dword [ebp + 8]
push edi
push dword [ebp - 0x3a4]
call esi
test eax, eax
je 0x403b9d
push dword [ebp + 8]
call fcn.004026b8
test eax, eax
pop ecx
jne 0x403953
push ebx
push 0x10
push dword [ebp + 8]
push edi
push dword [ebp - 0x3a4]
call esi
test eax, eax
je 0x403bbd
push dword [ebp + 8]
call fcn.004026b8
test eax, eax
pop ecx
jne 0x403c29
mov edi, dword [ebp - 0x3b4]
mov dword [ebp + 0xc], 0xa
mov eax, dword [ebp + 0xc]
add edi, dword [ebp + eax*4 - 0x7c]
cmp eax, 0xc
mov dword [ebp - 0x3ac], ebx
jne 0x403bdf
add edi, 8
push ebx
push 4
lea eax, [ebp - 0x3ac]
push eax
push edi
push dword [ebp - 0x3a4]
call esi
test eax, eax
je 0x403c05
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0xf
mov edi, dword [ebp - 0x3ac]
jl 0x403bca
push ebx
push 0x10
push dword [ebp + 8]
push edi
push dword [ebp - 0x3a4]
call esi
test eax, eax
je 0x403c29
push dword [ebp + 8]
call fcn.004026b8
test eax, eax
pop ecx
jne 0x403953
push ebx
push 0x10
push dword [ebp + 8]
push edi
push dword [ebp - 0x3a4]
call esi
test eax, eax
je 0x403c49
push dword [ebp + 8]
call fcn.004026b8
test eax, eax
pop ecx
jne 0x403cbe
mov edi, dword [ebp - 0x3b4]
mov dword [ebp + 0xc], 0xa
mov eax, dword [ebp + 0xc]
add edi, dword [ebp + eax*4 - 0x7c]
cmp eax, 0xb
mov dword [ebp - 0x3ac], ebx
jne 0x403c6b
sub edi, 8
cmp dword [ebp + 0xc], 0xc
jne 0x403c74
add edi, 8
push ebx
push 4
lea eax, [ebp - 0x3ac]
push eax
push edi
push dword [ebp - 0x3a4]
call esi
test eax, eax
je 0x403c9a
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0xf
mov edi, dword [ebp - 0x3ac]
jl 0x403c56
push ebx
push 0x10
push dword [ebp + 8]
push edi
push dword [ebp - 0x3a4]
call esi
test eax, eax
je 0x403cbe
push dword [ebp + 8]
call fcn.004026b8
test eax, eax
pop ecx
jne 0x403953
push ebx
push 0x10
push dword [ebp + 8]
push edi
push dword [ebp - 0x3a4]
call esi
test eax, eax
je 0x403cde
push dword [ebp + 8]
call fcn.004026b8
test eax, eax
pop ecx
jne 0x403d42
mov edi, dword [ebp - 0x3b4]
mov dword [ebp + 0xc], 0xf
mov eax, dword [ebp + 0xc]
add edi, dword [ebp + eax*4 - 0x7c]
push ebx
push 4
lea eax, [ebp - 0x3ac]
push eax
push edi
push dword [ebp - 0x3a4]
mov dword [ebp - 0x3ac], ebx
call esi
test eax, eax
je 0x403d1e
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0x14
mov edi, dword [ebp - 0x3ac]
jl 0x403ceb
push ebx
push 0x10
push dword [ebp + 8]
push edi
push dword [ebp - 0x3a4]
call esi
test eax, eax
je 0x403d42
push dword [ebp + 8]
call fcn.004026b8
test eax, eax
pop ecx
jne 0x403953
push ebx
push 0x10
push dword [ebp + 8]
push edi
push dword [ebp - 0x3a4]
call esi
test eax, eax
je 0x403d62
push dword [ebp + 8]
call fcn.004026b8
test eax, eax
pop ecx
jne 0x403dc6
mov edi, dword [ebp - 0x3a8]
mov dword [ebp + 0xc], 0x14
mov eax, dword [ebp + 0xc]
add edi, dword [ebp + eax*4 - 0x7c]
push ebx
push 4
lea eax, [ebp - 0x3ac]
push eax
push edi
push dword [ebp - 0x3a4]
mov dword [ebp - 0x3ac], ebx
call esi
test eax, eax
je 0x403da2
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0x19
mov edi, dword [ebp - 0x3ac]
jl 0x403d6f
push ebx
push 0x10
push dword [ebp + 8]
push edi
push dword [ebp - 0x3a4]
call esi
test eax, eax
je 0x403dc6
push dword [ebp + 8]
call fcn.004026b8
test eax, eax
pop ecx
jne 0x403953
push ebx
push 0x10
push dword [ebp + 8]
push edi
push dword [ebp - 0x3a4]
call esi
test eax, eax
je 0x403de6
push dword [ebp + 8]
call fcn.004026b8
test eax, eax
pop ecx
jne 0x403e5b
mov edi, dword [ebp - 0x3a8]
add edi, 8
mov dword [ebp + 0xc], 0x14
cmp dword [ebp + 0xc], 0x15
mov dword [ebp - 0x3ac], ebx
jne 0x403e0a
sub edi, 0x130
jmp 0x403e11
mov eax, dword [ebp + 0xc]
add edi, dword [ebp + eax*4 - 0x7c]
push ebx
push 4
lea eax, [ebp - 0x3ac]
push eax
push edi
push dword [ebp - 0x3a4]
call esi
test eax, eax
je 0x403e37
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0x19
mov edi, dword [ebp - 0x3ac]
jl 0x403df6
push ebx
push 0x10
push dword [ebp + 8]
push edi
push dword [ebp - 0x3a4]
call esi
test eax, eax
je 0x403e5b
push dword [ebp + 8]
call fcn.004026b8
test eax, eax
pop ecx
jne 0x403953
push ebx
push 0x10
push dword [ebp + 8]
push edi
push dword [ebp - 0x3a4]
call esi
test eax, eax
je 0x403e7b
push dword [ebp + 8]
call fcn.004026b8
test eax, eax
pop ecx
jne 0x403edf
mov edi, dword [ebp - 0x3b4]
mov dword [ebp + 0xc], 0x19
mov eax, dword [ebp + 0xc]
add edi, dword [ebp + eax*4 - 0x7c]
push ebx
push 4
lea eax, [ebp - 0x3ac]
push eax
push edi
push dword [ebp - 0x3a4]
mov dword [ebp - 0x3ac], ebx
call esi
test eax, eax
je 0x403ebb
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0x1e
mov edi, dword [ebp - 0x3ac]
jl 0x403e88
push ebx
push 0x10
push dword [ebp + 8]
push edi
push dword [ebp - 0x3a4]
call esi
test eax, eax
je 0x403edf
push dword [ebp + 8]
call fcn.004026b8
test eax, eax
pop ecx
jne 0x403953
push 0x39
pop ecx
xor eax, eax
mov byte [ebp - 0x17c], 0x43
mov byte [ebp - 0x17b], bl
mov byte [ebp - 0x17a], 0x54
mov byte [ebp - 0x179], bl
mov byte [ebp - 0x178], 0x58
mov byte [ebp - 0x177], bl
mov byte [ebp - 0x176], 0x53
mov byte [ebp - 0x175], bl
mov byte [ebp - 0x174], 0x65
mov byte [ebp - 0x173], bl
mov byte [ebp - 0x172], 0x72
mov byte [ebp - 0x171], bl
mov byte [ebp - 0x170], 0x76
mov byte [ebp - 0x16f], bl
mov byte [ebp - 0x16e], 0x65
mov byte [ebp - 0x16d], bl
mov byte [ebp - 0x16c], 0x72
mov byte [ebp - 0x16b], bl
mov byte [ebp - 0x16a], 0x4c
mov byte [ebp - 0x169], bl
mov byte [ebp - 0x168], 0x69
mov byte [ebp - 0x167], bl
mov byte [ebp - 0x166], 0x73
mov byte [ebp - 0x165], bl
mov byte [ebp - 0x164], 0x74
mov byte [ebp - 0x163], bl
lea edi, [ebp - 0x162]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push 0x1c
lea eax, [ebp - 0x3d8]
push ebx
or edi, 0xffffffff
push eax
mov dword [ebp - 0x3b8], edi
mov dword [ebp - 0x3a8], ebx
call fcn.00405050
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x3d8]
push eax
push ebx
jmp 0x40400c
push 1
push 0x1a
lea eax, [ebp - 0x17c]
push eax
push dword [ebp - 0x3cc]
push dword [ebp - 0x3d8]
push dword [ebp - 0x3a4]
call fcn.00402517
mov edi, eax
add esp, 0x18
cmp edi, 0xffffffff
jne 0x40401d
mov eax, dword [ebp - 0x3a8]
add eax, dword [ebp - 0x3cc]
push 0x1c
lea ecx, [ebp - 0x3d8]
push ecx
mov dword [ebp - 0x3a8], eax
push eax
push dword [ebp - 0x3a4]
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp eax, 0x1c
je 0x403fc4
cmp edi, 0xffffffff
mov dword [ebp - 0x3b8], edi
je 0x4040a5
push 0x1c
lea eax, [ebp - 0x3d8]
push ebx
push eax
mov dword [ebp - 0x3a8], ebx
call fcn.00405050
add esp, 0xc
push 0x1c
lea eax, [ebp - 0x3d8]
push eax
push ebx
jmp 0x404094
push 1
push 4
lea eax, [ebp - 0x3b8]
push eax
push dword [ebp - 0x3cc]
push dword [ebp - 0x3d8]
push dword [ebp - 0x3a4]
call fcn.00402517
mov edi, eax
add esp, 0x18
cmp edi, 0xffffffff
jne 0x4040a5
mov eax, dword [ebp - 0x3a8]
add eax, dword [ebp - 0x3cc]
push 0x1c
lea ecx, [ebp - 0x3d8]
push ecx
mov dword [ebp - 0x3a8], eax
push eax
push dword [ebp - 0x3a4]
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp eax, 0x1c
je 0x40404c
push edi
push str._Offset_is__x_n
call fcn.00401000
pop ecx
pop ecx
push 8
pop ecx
mov edx, 0x3fc
push 0x14
pop eax
mov dword [ebp - 0x3b8], edi
mov dword [ebp - 0x44], 0xffffffdc
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], 0xffffffe4
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], 0xffffffac
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], 0xffffffdc
mov dword [ebp - 0x10], 0x3f8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], eax
mov dword [ebp + 0xc], ebx
mov eax, dword [ebp + 0xc]
add edi, dword [ebp + eax*4 - 0x44]
push ebx
push 4
lea eax, [ebp - 0x3a8]
push eax
push edi
push dword [ebp - 0x3a4]
mov dword [ebp - 0x3a8], ebx
call esi
test eax, eax
je 0x404145
cmp dword [ebp - 0x3a8], ebx
je 0x404145
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 4
mov edi, dword [ebp - 0x3a8]
jl 0x40410a
push ebx
push 0x10
push dword [ebp + 8]
push edi
push dword [ebp - 0x3a4]
call esi
test eax, eax
je 0x404178
push dword [ebp + 8]
call fcn.004026b8
test eax, eax
pop ecx
je 0x404178
push dword [ebp - 0x3a4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, ebx
jmp 0x4042d3
mov edi, dword [ebp - 0x3b8]
mov dword [ebp + 0xc], 4
mov eax, dword [ebp + 0xc]
add edi, dword [ebp + eax*4 - 0x44]
push ebx
push 4
lea eax, [ebp - 0x3a8]
push eax
push edi
push dword [ebp - 0x3a4]
mov dword [ebp - 0x3a8], ebx
call esi
test eax, eax
je 0x4041c0
cmp dword [ebp - 0x3a8], ebx
je 0x4041c0
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 8
mov edi, dword [ebp - 0x3a8]
jl 0x404185
push ebx
push 0x10
push dword [ebp + 8]
push edi
push dword [ebp - 0x3a4]
call esi
test eax, eax
je 0x4041e4
push dword [ebp + 8]
call fcn.004026b8
test eax, eax
pop ecx
jne 0x4042b4
mov edi, dword [ebp - 0x3b8]
mov dword [ebp + 0xc], 8
mov eax, dword [ebp + 0xc]
add edi, dword [ebp + eax*4 - 0x44]
push ebx
push 4
lea eax, [ebp - 0x3a8]
push eax
push edi
push dword [ebp - 0x3a4]
mov dword [ebp - 0x3a8], ebx
call esi
test eax, eax
je 0x40422c
cmp dword [ebp - 0x3a8], ebx
je 0x40422c
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0xc
mov edi, dword [ebp - 0x3a8]
jl 0x4041f1
push ebx
push 0x10
push dword [ebp + 8]
push edi
push dword [ebp - 0x3a4]
call esi
test eax, eax
je 0x40424c
push dword [ebp + 8]
call fcn.004026b8
test eax, eax
pop ecx
jne 0x4042b4
mov edi, dword [ebp - 0x3b8]
mov dword [ebp + 0xc], 0xc
mov eax, dword [ebp + 0xc]
add edi, dword [ebp + eax*4 - 0x44]
push ebx
push 4
lea eax, [ebp - 0x3a8]
push eax
push edi
push dword [ebp - 0x3a4]
mov dword [ebp - 0x3a8], ebx
call esi
test eax, eax
je 0x404294
cmp dword [ebp - 0x3a8], ebx
je 0x404294
inc dword [ebp + 0xc]
cmp dword [ebp + 0xc], 0x10
mov edi, dword [ebp - 0x3a8]
jl 0x404259
push ebx
push 0x10
push dword [ebp + 8]
push edi
push dword [ebp - 0x3a4]
call esi
test eax, eax
je 0x4042c4
push dword [ebp + 8]
call fcn.004026b8
test eax, eax
pop ecx
je 0x4042c4
push dword [ebp - 0x3a4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x4042d3
push dword [ebp - 0x3a4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
inc eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.00404fd2
leave
ret 8