Function at 0x401000
Capabilities:
Create thread

Disassembly:
sub esp, 0x240
mov edx, dword [esp + 0x24c]
mov eax, dword [str.___t]
mov cl, byte [0x409080]
push ebx
push ebp
push esi
push edi
push edx
mov dword [esp + 0x1c], eax
mov byte [esp + 0x20], cl
call fcn.004074d0
add esp, 4
lea ecx, [esp + 0x18]
mov dword [esp + 0x14], eax
push ecx
push eax
call fcn.00401a60
mov esi, eax
add esp, 8
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x50]
xor ebp, ebp
xor ebx, ebx
test esi, esi
rep stosd dword es:[edi], eax
je 0x4010f9
push str.wpipe
push esi
call fcn.00401990
add esp, 8
test eax, eax
jne 0x40109e
lea edx, [esp + 0x18]
push edx
push eax
call fcn.00401a60
add esp, 8
push 0xff
push eax
lea eax, [esp + 0x58]
push eax
call fcn.00401890
add esp, 0xc
lea ecx, [esp + 0x50]
push ecx
call fcn.004017f0
add esp, 4
mov ebx, eax
jmp 0x4010e0
push str.rpipe
push esi
call fcn.00401990
add esp, 8
test eax, eax
jne 0x4010e0
lea edx, [esp + 0x18]
push edx
push eax
call fcn.00401a60
add esp, 8
push 0xff
push eax
lea eax, [esp + 0x58]
push eax
call fcn.00401890
add esp, 0xc
lea ecx, [esp + 0x50]
push ecx
call fcn.004017f0
add esp, 4
mov ebp, eax
lea edx, [esp + 0x18]
push edx
push 0
call fcn.00401a60
mov esi, eax
add esp, 8
test esi, esi
jne 0x40105a
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40110a
push eax
call fcn.00401780
add esp, 4
mov edx, dword [esp + 0x25c]
mov ax, word [0x409068]
mov cl, byte [0x40906a]
push edx
mov word [esp + 0x14], ax
mov byte [esp + 0x16], cl
call fcn.004074d0
add esp, 4
mov edi, eax
lea eax, [esp + 0x10]
xor esi, esi
push eax
push edi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x34], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x3c], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x44], esi
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
call fcn.00401a60
add esp, 8
test eax, eax
je 0x401197
cmp si, 0xa
jge 0x401197
push eax
call fcn.004074d0
add esp, 4
lea edx, [esp + 0x10]
movsx ecx, si
push edx
push 0
mov dword [esp + ecx*4 + 0x2c], eax
inc esi
call fcn.00401a60
add esp, 8
test eax, eax
jne 0x40116d
push ebx
push ebp
push 0
push 0
call sub.DB2SPBUT.dll__JVMAction_16
mov esi, eax
test esi, esi
jne 0x4011b2
push 1
call fcn.00401640
add esp, 4
test edi, edi
je 0x4011bf
push edi
call fcn.00401780
add esp, 4
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4011d4
lea eax, [esp + 0x24]
push eax
push esi
call sub.DB2SPBUT.dll__JVMCallAction_8
jmp 0x4011e0
push 0
push 0
push esi
push 2
call sub.DB2SPBUT.dll__JVMAction_16
test eax, eax
mov dword [esp + 0x20], eax
jne 0x4011f2
push 1
call fcn.00401640
add esp, 4
mov ebx, dword [esp + 0x25c]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push 4
dec ecx
push ebx
push str._pid
mov esi, ecx
call fcn.004015d0
add esp, 0xc
test eax, eax
jne 0x401315
cmp esi, 5
jle 0x401315
push 0x104
mov dword [esp + 0x18], eax
call fcn.00401500
add esp, 4
lea edi, [ebx + 5]
mov ebp, eax
push 0x53
push edi
call fcn.00401440
add esp, 8
test eax, eax
je 0x401255
mov dword [esp + 0x14], 1
mov esi, edi
mov al, byte [esi]
cmp al, 0x20
je 0x401265
cmp al, 0xa
je 0x401265
cmp al, 9
jne 0x401268
inc esi
jmp 0x401257
push 0x20
push edi
call fcn.00401440
add esp, 8
test eax, eax
je 0x40127a
mov byte [eax], 0
mov eax, dword [esp + 0x14]
push esi
test eax, eax
je 0x4012a1
push str._sCALL4VS
push ebp
call fcn.004013c0
add esp, 0xc
lea ecx, [esp + 0x150]
push esi
push str._sCLOSE4VS
push ecx
jmp 0x4012bd
push str._sCALL4VB
push ebp
call fcn.004013c0
add esp, 0xc
lea edx, [esp + 0x150]
push esi
push str._sCLOSE4VB
push edx
call fcn.004013c0
mov esi, dword [esp + 0x2c]
add esp, 0xc
lea eax, [esp + 0x4c]
mov dword [ebp + 0x100], esi
push eax
push 0
push ebp
push 0x401330
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
lea ecx, [esp + 0x150]
push ecx
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenEventA]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0xffffffff
je 0x401315
push 0
push 0
push esi
push 4
call sub.DB2SPBUT.dll__JVMAction_16
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_Sleep]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x240
ret 0x10