Function at 0x4170f0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57c4e3
mov eax, dword fs:[0]
push eax
sub esp, 0x324
mov eax, dword [0x5e108c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x21c], 0
mov dword [ebp - 4], 4
cmp dword [ebp + 0x18], 0
je 0x41803b
cmp dword [ebp + 0x48], 0
je 0x41803b
push 0x44
lea eax, [ebp - 0x2f8]
push 0
push eax
call fcn.005065b0
push 0x208
lea eax, [ebp - 0x218]
mov dword [ebp - 0x2f8], 0x44
xorps xmm0, xmm0
push 0
push eax
movups xmmword [ebp - 0x2b4], xmm0
call fcn.005065b0
add esp, 0x18
lea eax, [ebp - 0x218]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [ebp - 0x268], 7
mov dword [ebp - 0x26c], 0
mov word [ebp - 0x27c], ax
push 1
push 0x5b5db0
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 5
call fcn.00424850
push 9
push 0x5b6174
lea ecx, [ebp - 0x24c]
call fcn.004313b0
mov byte [ebp - 4], 6
cmp dword [eax + 0x14], 0x10
jb 0x4171e1
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.004304e0
add esp, 8
push 0xffffffffffffffff
push 0
push eax
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 7
call fcn.00424980
push 0xffffffffffffffff
push 0
lea ecx, [ebp + 0x38]
push ecx
mov ecx, eax
call fcn.00424980
mov eax, dword [ebp - 0x220]
cmp eax, 8
jb 0x417232
inc eax
lea ecx, [ebp - 0x234]
push eax
push dword [ebp - 0x234]
call fcn.0040ca40
xor eax, eax
mov byte [ebp - 4], 5
mov word [ebp - 0x234], ax
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
cmp eax, 0x10
jb 0x417271
inc eax
lea ecx, [ebp - 0x24c]
push eax
push dword [ebp - 0x24c]
call fcn.0040c0a0
lea edx, [ebp + 8]
lea ecx, [ebp - 0x24c]
call fcn.00430640
mov edi, eax
push 9
push 0x5b614c
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 8
call fcn.004313b0
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 0x10
jb 0x4172a3
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.004304e0
add esp, 8
mov esi, eax
push 1
push 0x5b5db0
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 0xa
call fcn.00424850
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00424980
push 0xffffffffffffffff
push 0
push edi
mov ecx, eax
call fcn.00424980
mov eax, dword [ebp - 0x220]
cmp eax, 8
jb 0x417301
inc eax
lea ecx, [ebp - 0x234]
push eax
push dword [ebp - 0x234]
call fcn.0040ca40
xor eax, eax
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x224], 0
cmp eax, 0x10
jb 0x41733c
inc eax
lea ecx, [ebp - 0x264]
push eax
push dword [ebp - 0x264]
call fcn.0040c0a0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x250], 0xf
mov dword [ebp - 0x254], 0
mov byte [ebp - 0x264], 0
cmp eax, 8
jb 0x417379
inc eax
lea ecx, [ebp - 0x24c]
push eax
push dword [ebp - 0x24c]
call fcn.0040ca40
lea edx, [ebp + 0x50]
lea ecx, [ebp - 0x24c]
call fcn.00430640
mov edi, eax
push 8
push 0x5b6140
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 0xb
call fcn.004313b0
mov byte [ebp - 4], 0xc
cmp dword [eax + 0x14], 0x10
jb 0x4173ab
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.004304e0
add esp, 8
mov esi, eax
push 1
push 0x5b5db0
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 0xd
call fcn.00424850
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00424980
push 0xffffffffffffffff
push 0
push edi
mov ecx, eax
call fcn.00424980
mov eax, dword [ebp - 0x220]
cmp eax, 8
jb 0x417409
inc eax
lea ecx, [ebp - 0x234]
push eax
push dword [ebp - 0x234]
call fcn.0040ca40
xor eax, eax
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x224], 0
cmp eax, 0x10
jb 0x417444
inc eax
lea ecx, [ebp - 0x264]
push eax
push dword [ebp - 0x264]
call fcn.0040c0a0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x250], 0xf
mov dword [ebp - 0x254], 0
mov byte [ebp - 0x264], 0
cmp eax, 8
jb 0x417481
inc eax
lea ecx, [ebp - 0x24c]
push eax
push dword [ebp - 0x24c]
call fcn.0040ca40
lea edx, [ebp + 0x68]
lea ecx, [ebp - 0x24c]
call fcn.00430640
mov edi, eax
push 0xe
push 0x5b6130
lea ecx, [ebp - 0x264]
mov byte [ebp - 4], 0xe
call fcn.004313b0
mov byte [ebp - 4], 0xf
cmp dword [eax + 0x14], 0x10
jb 0x4174b3
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.004304e0
add esp, 8
mov esi, eax
push 1
push 0x5b5db0
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 0x10
call fcn.00424850
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00424980
push 0xffffffffffffffff
push 0
push edi
mov ecx, eax
call fcn.00424980
mov eax, dword [ebp - 0x220]
cmp eax, 8
jb 0x417511
inc eax
lea ecx, [ebp - 0x234]
push eax
push dword [ebp - 0x234]
call fcn.0040ca40
xor eax, eax
mov dword [ebp - 0x220], 7
mov word [ebp - 0x234], ax
mov eax, dword [ebp - 0x250]
mov dword [ebp - 0x224], 0
cmp eax, 0x10
jb 0x41754c
inc eax
lea ecx, [ebp - 0x264]
push eax
push dword [ebp - 0x264]
call fcn.0040c0a0
mov byte [ebp - 4], 5
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x250], 0xf
mov dword [ebp - 0x254], 0
mov byte [ebp - 0x264], 0
cmp eax, 8
jb 0x417589
inc eax
lea ecx, [ebp - 0x24c]
push eax
push dword [ebp - 0x24c]
call fcn.0040ca40
push 6
push 0x5b6128
lea ecx, [ebp - 0x24c]
call fcn.004313b0
mov byte [ebp - 4], 0x11
cmp dword [eax + 0x14], 0x10
jb 0x4175a7
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.004304e0
add esp, 8
mov esi, eax
push 1
push 0x5b5db0
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 0x12
call fcn.00424850
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00424980
push 0xffffffffffffffff
push 0
push 0x60c5d4
mov ecx, eax
call fcn.00424980
mov eax, dword [ebp - 0x220]
cmp eax, 8
jb 0x417609
inc eax
lea ecx, [ebp - 0x234]
push eax
push dword [ebp - 0x234]
call fcn.0040ca40
xor eax, eax
mov byte [ebp - 4], 5
mov word [ebp - 0x234], ax
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
cmp eax, 0x10
jb 0x417648
inc eax
lea ecx, [ebp - 0x24c]
push eax
push dword [ebp - 0x24c]
call fcn.0040c0a0
push 7
push 0x5b6120
lea ecx, [ebp - 0x24c]
call fcn.004313b0
mov byte [ebp - 4], 0x13
cmp dword [eax + 0x14], 0x10
jb 0x417666
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.004304e0
add esp, 8
mov esi, eax
push 1
push 0x5b5db0
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 0x14
call fcn.00424850
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00424980
push 0xffffffffffffffff
push 0
push 0x60c5ec
mov ecx, eax
call fcn.00424980
mov eax, dword [ebp - 0x220]
cmp eax, 8
jb 0x4176c8
inc eax
lea ecx, [ebp - 0x234]
push eax
push dword [ebp - 0x234]
call fcn.0040ca40
xor eax, eax
mov byte [ebp - 4], 5
mov word [ebp - 0x234], ax
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
cmp eax, 0x10
jb 0x417707
inc eax
lea ecx, [ebp - 0x24c]
push eax
push dword [ebp - 0x24c]
call fcn.0040c0a0
push 8
push 0x5b6114
lea ecx, [ebp - 0x24c]
call fcn.004313b0
mov byte [ebp - 4], 0x15
cmp dword [eax + 0x14], 0x10
jb 0x417725
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.004304e0
add esp, 8
mov esi, eax
push 1
push 0x5b5db0
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 0x16
call fcn.00424850
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00424980
push 0xffffffffffffffff
push 0
push 0x60c604
mov ecx, eax
call fcn.00424980
mov eax, dword [ebp - 0x220]
cmp eax, 8
jb 0x417787
inc eax
lea ecx, [ebp - 0x234]
push eax
push dword [ebp - 0x234]
call fcn.0040ca40
xor eax, eax
mov byte [ebp - 4], 5
mov word [ebp - 0x234], ax
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
cmp eax, 0x10
jb 0x4177c6
inc eax
lea ecx, [ebp - 0x24c]
push eax
push dword [ebp - 0x24c]
call fcn.0040c0a0
push 8
push 0x5b6108
lea ecx, [ebp - 0x24c]
call fcn.004313b0
mov byte [ebp - 4], 0x17
cmp dword [eax + 0x14], 0x10
jb 0x4177e4
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.004304e0
add esp, 8
mov esi, eax
push 1
push 0x5b5db0
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 0x18
call fcn.00424850
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00424980
push 0xffffffffffffffff
push 0
push 0x60c64c
mov ecx, eax
call fcn.00424980
mov eax, dword [ebp - 0x220]
cmp eax, 8
jb 0x417846
inc eax
lea ecx, [ebp - 0x234]
push eax
push dword [ebp - 0x234]
call fcn.0040ca40
xor eax, eax
mov byte [ebp - 4], 5
mov word [ebp - 0x234], ax
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
cmp eax, 0x10
jb 0x417885
inc eax
lea ecx, [ebp - 0x24c]
push eax
push dword [ebp - 0x24c]
call fcn.0040c0a0
push 8
push 0x5b60fc
lea ecx, [ebp - 0x24c]
call fcn.004313b0
mov byte [ebp - 4], 0x19
cmp dword [eax + 0x14], 0x10
jb 0x4178a3
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x234]
push eax
call fcn.004304e0
add esp, 8
mov esi, eax
push 1
push 0x5b5db0
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 0x1a
call fcn.00424850
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00424980
push 0xffffffffffffffff
push 0
push 0x60c664
mov ecx, eax
call fcn.00424980
mov eax, dword [ebp - 0x220]
cmp eax, 8
jb 0x417905
inc eax
lea ecx, [ebp - 0x234]
push eax
push dword [ebp - 0x234]
call fcn.0040ca40
xor eax, eax
mov byte [ebp - 4], 5
mov word [ebp - 0x234], ax
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x220], 7
mov dword [ebp - 0x224], 0
cmp eax, 0x10
jb 0x417944
inc eax
lea ecx, [ebp - 0x24c]
push eax
push dword [ebp - 0x24c]
call fcn.0040c0a0
push 0xc
push 0x5b60ec
lea ecx, [ebp - 0x234]
call fcn.004313b0
mov byte [ebp - 4], 0x1b
cmp dword [eax + 0x14], 0x10
jb 0x417962
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.004304e0
add esp, 8
mov esi, eax
push 0x5b5db0
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 0x1c
call fcn.004222e0
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00424980
push 0xffffffffffffffff
push 0
push 0x60c634
mov ecx, eax
call fcn.00424980
lea ecx, [ebp - 0x24c]
call fcn.0040ba40
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 5
call fcn.0040bb00
push 0x11
push 0x5b60d8
lea ecx, [ebp - 0x234]
call fcn.004313b0
mov byte [ebp - 4], 0x1d
cmp dword [eax + 0x14], 0x10
jb 0x4179dc
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.004304e0
add esp, 8
mov esi, eax
push 0x5b5db0
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 0x1e
call fcn.004222e0
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00424980
push 0xffffffffffffffff
push 0
push 0x60c67c
mov ecx, eax
call fcn.00424980
lea ecx, [ebp - 0x24c]
call fcn.0040ba40
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 5
call fcn.0040bb00
mov edx, 0x60cd6c
lea ecx, [ebp - 0x294]
call fcn.00430640
push eax
mov edx, 0x5b5db4
mov byte [ebp - 4], 0x1f
lea ecx, [ebp - 0x318]
call fcn.004273f0
push 0x5b5db4
mov edx, eax
mov byte [ebp - 4], 0x20
lea ecx, [ebp - 0x264]
call fcn.00427110
add esp, 8
mov edi, eax
push 0xb
push 0x5b6168
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0x21
call fcn.004313b0
mov byte [ebp - 4], 0x22
cmp dword [eax + 0x14], 0x10
jb 0x417a9a
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.004304e0
add esp, 8
mov esi, eax
push 0x5b5db0
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 0x23
call fcn.004222e0
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00424980
push 0xffffffffffffffff
push 0
push edi
mov ecx, eax
call fcn.00424980
lea ecx, [ebp - 0x24c]
call fcn.0040ba40
lea ecx, [ebp - 0x234]
call fcn.0040bb00
lea ecx, [ebp - 0x264]
call fcn.0040ba40
lea ecx, [ebp - 0x318]
call fcn.0040ba40
lea ecx, [ebp - 0x294]
mov byte [ebp - 4], 5
call fcn.0040ba40
cmp byte [0x607458], 0
je 0x417b64
push 4
push 0x5b61ac
lea ecx, [ebp - 0x330]
call fcn.004313b0
mov byte [ebp - 4], 0x24
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 0x21c], 1
jb 0x417b44
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x264]
push eax
call fcn.004304e0
add esp, 8
mov edi, eax
mov dword [ebp - 4], 0x25
mov ecx, 3
jmp 0x417bad
push 5
push 0x5b61a4
lea ecx, [ebp - 0x234]
call fcn.004313b0
mov dword [ebp - 4], 0x26
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 0x21c], 4
jb 0x417b8f
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.004304e0
add esp, 8
mov edi, eax
mov dword [ebp - 4], 0x27
mov ecx, 0xc
push 0xc
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x300], ecx
lea ecx, [ebp - 0x318]
push 0x5b6158
call fcn.004313b0
mov dword [ebp - 4], 0x28
cmp dword [eax + 0x14], 0x10
jb 0x417bda
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x294]
push eax
call fcn.004304e0
add esp, 8
mov esi, eax
push 0x5b5db0
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 0x29
call fcn.004222e0
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00424980
push 0xffffffffffffffff
push 0
push edi
mov ecx, eax
call fcn.00424980
lea ecx, [ebp - 0x294]
call fcn.0040ba40
lea ecx, [ebp - 0x318]
call fcn.0040bb00
mov eax, dword [ebp - 0x300]
test al, 8
je 0x417c52
and eax, 0xfffffff7
lea ecx, [ebp - 0x24c]
mov dword [ebp - 0x300], eax
call fcn.0040ba40
mov eax, dword [ebp - 0x300]
test al, 4
je 0x417c70
and eax, 0xfffffffb
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x300], eax
call fcn.0040bb00
mov eax, dword [ebp - 0x300]
test al, 2
je 0x417c8e
and eax, 0xfffffffd
lea ecx, [ebp - 0x264]
mov dword [ebp - 0x300], eax
call fcn.0040ba40
mov eax, dword [ebp - 0x300]
mov dword [ebp - 4], 5
test al, 1
je 0x417ca4
lea ecx, [ebp - 0x330]
call fcn.0040bb00
mov edx, dword [0x60bff0]
lea ecx, [ebp - 0x318]
call fcn.0040de20
mov edi, eax
push 0x10
push 0x5b60c4
lea ecx, [ebp - 0x294]
mov byte [ebp - 4], 0x2a
call fcn.004313b0
mov byte [ebp - 4], 0x2b
cmp dword [eax + 0x14], 0x10
jb 0x417cd9
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x330]
push eax
call fcn.004304e0
add esp, 8
mov esi, eax
push 0x5b5db0
lea ecx, [ebp - 0x27c]
mov byte [ebp - 4], 0x2c
call fcn.004222e0
push 0xffffffffffffffff
push 0
push esi
mov ecx, eax
call fcn.00424980
push 0xffffffffffffffff
push 0
push edi
mov ecx, eax
call fcn.00424980
lea ecx, [ebp - 0x330]
call fcn.0040ba40
lea ecx, [ebp - 0x294]
call fcn.0040bb00
lea ecx, [ebp - 0x318]
mov byte [ebp - 4], 5
call fcn.0040ba40
cmp dword [ebp + 0x30], 0
jne 0x417d9d
cmp dword [ebp - 0x268], 8
lea ecx, [ebp - 0x2b4]
push ecx
lea ecx, [ebp - 0x2f8]
push ecx
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x27c]
cmovae eax, dword [ebp - 0x27c]
push 0
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x418027
lea ecx, [ebp - 0x27c]
mov byte [ebp - 0x2f9], 1
call fcn.0040ba40
jmp 0x418042
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x24c]
call fcn.0040ba80
push 0x5b5db0
lea ecx, [ebp - 0x24c]
mov byte [ebp - 4], 0x2d
call fcn.004222e0
push 0xffffffffffffffff
push 0
lea ecx, [ebp - 0x27c]
push ecx
mov ecx, eax
call fcn.00424980
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x234]
call fcn.0040ba80
push 1
push ecx
lea eax, [ebp - 0x21c]
mov byte [ebp - 4], 0x2e
push eax
lea ecx, [ebp - 0x234]
mov dword [ebp - 0x21c], 0x5c
call fcn.00424130
cmp eax, 0xffffffff
je 0x417e63
push 1
push ecx
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x21c], 0x5c
push eax
lea ecx, [ebp - 0x234]
call fcn.00424130
inc eax
lea ecx, [ebp - 0x234]
push eax
push 0
lea eax, [ebp - 0x330]
push eax
call fcn.00422200
push eax
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 0x2f
call fcn.00422380
lea ecx, [ebp - 0x330]
mov byte [ebp - 4], 0x2e
call fcn.0040ba40
push ecx
push 0
xorps xmm0, xmm0
lea ecx, [ebp - 0x2a4]
push 0x60c9ac
push reloc.WS2_32.dll_accept
movups xmmword [ebp - 0x2a4], xmm0
movups xmmword [ebp - 0x294], xmm0
movq qword [ebp - 0x284], xmm0
call fcn.0042d950
lea eax, [ebp + 0x20]
mov byte [ebp - 4], 0x30
push eax
lea ecx, [ebp - 0x2a4]
call fcn.0042e1d0
test al, al
je 0x418006
lea eax, [ebp + 0x20]
mov dword [ebp - 0x250], 0
push eax
lea eax, [ebp - 0x258]
xorps xmm0, xmm0
push eax
lea ecx, [ebp - 0x2a4]
movq qword [ebp - 0x258], xmm0
call fcn.0042dbb0
mov byte [ebp - 4], 0x31
mov edi, dword [ebp - 0x254]
sub edi, dword [ebp - 0x258]
mov dword [ebp - 0x300], edi
je 0x417ffb
push edi
call fcn.004f48f1
mov esi, eax
add esp, 4
test esi, esi
je 0x417f16
push edi
push 0
push esi
call fcn.005065b0
add esp, 0xc
mov byte [esi], 0
jmp 0x417f18
xor esi, esi
test edi, edi
je 0x417f44
mov eax, dword [ebp - 0x258]
mov edx, edi
sub eax, esi
mov ecx, esi
mov dword [ebp - 0x21c], eax
mov edi, eax
mov al, byte [edi + ecx]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub edx, 1
jne 0x417f30
mov edi, dword [ebp - 0x300]
lea eax, [ebp - 0x21c]
mov dword [ebp - 0x300], 0
push eax
lea eax, [ebp - 0x300]
mov dword [ebp - 0x21c], 0
push eax
mov edx, edi
mov ecx, esi
call fcn.0042c8d0
add esp, 8
test al, al
je 0x417ffb
cmp dword [ebp - 0x220], 8
lea edx, [ebp - 0x234]
lea ecx, [ebp - 0x24c]
cmovae edx, dword [ebp - 0x234]
cmp dword [ebp - 0x238], 8
cmovae ecx, dword [ebp - 0x24c]
push ecx
push dword [ebp - 0x21c]
push dword [ebp - 0x300]
call fcn.00414140
add esp, 0xc
test al, al
je 0x417ffb
lea ecx, [ebp - 0x258]
call fcn.004239b0
lea ecx, [ebp - 0x2a4]
call fcn.0042d9a0
lea ecx, [ebp - 0x234]
call fcn.0040ba40
lea ecx, [ebp - 0x24c]
call fcn.0040ba40
lea ecx, [ebp - 0x27c]
mov byte [ebp - 0x2f9], 1
call fcn.0040ba40
jmp 0x418042
lea ecx, [ebp - 0x258]
call fcn.004239b0
lea ecx, [ebp - 0x2a4]
call fcn.0042d9a0
lea ecx, [ebp - 0x234]
call fcn.0040ba40
lea ecx, [ebp - 0x24c]
call fcn.0040ba40
lea ecx, [ebp - 0x27c]
mov byte [ebp - 0x2f9], 0
call fcn.0040ba40
jmp 0x418042
mov byte [ebp - 0x2f9], 0
mov eax, dword [ebp + 0x1c]
cmp eax, 0x10
jb 0x418057
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.0040c0a0
mov eax, dword [ebp + 0x34]
mov dword [ebp + 0x1c], 0xf
mov dword [ebp + 0x18], 0
mov byte [ebp + 8], 0
cmp eax, 0x10
jb 0x41807e
inc eax
lea ecx, [ebp + 0x20]
push eax
push dword [ebp + 0x20]
call fcn.0040c0a0
mov eax, dword [ebp + 0x4c]
mov dword [ebp + 0x34], 0xf
mov dword [ebp + 0x30], 0
mov byte [ebp + 0x20], 0
cmp eax, 8
jb 0x4180a5
inc eax
lea ecx, [ebp + 0x38]
push eax
push dword [ebp + 0x38]
call fcn.0040ca40
xor eax, eax
mov dword [ebp + 0x4c], 7
mov word [ebp + 0x38], ax
mov eax, dword [ebp + 0x64]
mov dword [ebp + 0x48], 0
cmp eax, 0x10
jb 0x4180ce
inc eax
lea ecx, [ebp + 0x50]
push eax
push dword [ebp + 0x50]
call fcn.0040c0a0
mov ecx, dword [ebp + 0x7c]
mov dword [ebp + 0x64], 0xf
mov dword [ebp + 0x60], 0
mov byte [ebp + 0x50], 0
cmp ecx, 0x10
jb 0x4180f5
inc ecx
push ecx
push dword [ebp + 0x68]
lea ecx, [ebp + 0x68]
call fcn.0040c0a0
mov al, byte [ebp - 0x2f9]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004f4655
mov esp, ebp
pop ebp
ret