Function at 0x1005d240
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 0x27c]
mov eax, dword [esi + 0x2d0]
inc ecx
test eax, eax
mov dword [esi + 0x27c], ecx
je 0x1005d2b3
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp eax, dword [esi + 0x2d0]
je 0x1005d2b3
mov eax, dword [esi + 0x480]
mov edi, dword [esp + 0x10]
test eax, eax
je 0x1005d298
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1005d298
mov eax, dword [esi + 0x480]
push 0
push edi
push 0x83e7
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [esi + 0x4b4]
test eax, eax
jne 0x1005d640
push edi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov ecx, esi
mov dword [esi + 0x4b4], 1
call fcn.1005b2e0
mov ecx, esi
call fcn.1002dad3
mov edx, dword [esi + 0x134]
lea ecx, [esi + 0x134]
call dword [edx + 8]
mov edi, dword [esi + 0xf0]
xor ebx, ebx
shr edi, 2
test edi, edi
jle 0x1005d2fc
mov eax, dword [esi + 0xe8]
mov ecx, dword [eax + ebx*4]
call fcn.1005f7b0
inc ebx
cmp ebx, edi
jl 0x1005d2e9
mov ebx, dword [esi + 0x160]
xor edi, edi
shr ebx, 2
test ebx, ebx
jle 0x1005d32e
mov ecx, dword [esi + 0x158]
mov eax, dword [ecx + edi*4]
test eax, eax
je 0x1005d329
mov edx, dword [esi + 0x16c]
push 0
mov ecx, dword [edx + edi*4]
push ecx
push 6
call dword [eax + 0x78]
inc edi
cmp edi, ebx
jl 0x1005d30b
mov eax, dword [esi + 0x19c]
push ebp
lea ebp, [esi + 0x18c]
test eax, eax
jne 0x1005d343
xor edi, edi
jmp 0x1005d346
mov edi, dword [ebp + 8]
test ebx, ebx
jle 0x1005d362
mov eax, dword [edi]
test eax, eax
je 0x1005d35c
cmp eax, dword [esi + 0x68]
je 0x1005d35c
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
add edi, 4
dec ebx
jne 0x1005d34a
mov ecx, ebp
call fcn.1002fb60
lea ecx, [esi + 0x178]
call fcn.1002fb60
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x1a0]
call fcn.100d2bbd
lea ecx, [esi + 0x164]
call fcn.1002fb60
lea ecx, [esi + 0x150]
call fcn.1002fb60
mov edi, dword [esi + 0x1ec]
shr edi, 2
test edi, edi
jle 0x1005d3f1
xor ebx, ebx
test edi, edi
jle 0x1005d3c5
mov edx, dword [esi + 0x1e4]
mov eax, dword [edx + ebx*4]
test eax, eax
je 0x1005d3c0
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
inc ebx
cmp ebx, edi
jl 0x1005d3ac
lea ecx, [esi + 0x1dc]
call fcn.1002fb60
lea ecx, [esi + 0x1f0]
call fcn.1002fb60
lea ecx, [esi + 0x1b4]
call fcn.1002fb60
lea ecx, [esi + 0x1c8]
call fcn.1002fb60
mov ebx, dword [esi + 0x258]
shr ebx, 2
test ebx, ebx
jle 0x1005d433
xor edi, edi
test ebx, ebx
jle 0x1005d419
mov eax, dword [esi + 0x250]
mov ecx, dword [eax + edi*4]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
inc edi
cmp edi, ebx
jl 0x1005d404
lea ecx, [esi + 0x248]
call fcn.1002fb60
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x25c]
call fcn.100d2bbd
mov ecx, esi
call fcn.1005b970
lea ecx, [esi + 0x278]
call fcn.100d6e82
lea ecx, [esi + 0x204]
call fcn.100d33f3
push 0xffffffffffffffff
push 0
lea ecx, [esi + 0x220]
call fcn.100d2bbd
lea ecx, [esi + 0x234]
call fcn.1002fb60
mov ebp, dword [esi + 0xf0]
xor ebx, ebx
shr ebp, 2
xor edi, edi
cmp ebp, ebx
jle 0x1005d49f
mov edx, dword [esi + 0xe8]
mov ebx, dword [edx + edi*4]
test ebx, ebx
je 0x1005d498
mov ecx, ebx
call fcn.1005f7e0
push ebx
call fcn.100d37e0
add esp, 4
inc edi
cmp edi, ebp
jl 0x1005d47b
xor ebx, ebx
lea ecx, [esi + 0xe0]
call fcn.1002fb60
mov eax, dword [esi + 0x4ac]
cmp eax, ebx
je 0x1005d4c1
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov dword [esi + 0x4ac], ebx
mov eax, dword [esi + 0x4b0]
cmp eax, ebx
je 0x1005d4d8
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov dword [esi + 0x4b0], ebx
mov eax, dword [esi + 0x480]
cmp eax, ebx
je 0x1005d50c
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1005d50c
push ebx
call fcn.100d3ca8
test eax, eax
je 0x1005d506
mov eax, dword [esi + 0x464]
lea ecx, [esi + 0x464]
call dword [eax + 0x58]
mov dword [esi + 0x480], ebx
mov ecx, esi
call fcn.1005a0e0
mov ebp, dword [esi + 0x44c]
xor edi, edi
cmp ebp, ebx
jle 0x1005d537
mov ecx, dword [esi + 0x448]
mov ecx, dword [ecx + edi*4]
cmp ecx, ebx
je 0x1005d532
mov edx, dword [ecx]
push 1
call dword [edx]
inc edi
cmp edi, ebp
jl 0x1005d51f
push 0xffffffffffffffff
push ebx
lea ecx, [esi + 0x444]
call fcn.100d2932
push 1
mov ecx, esi
call fcn.10060870
cmp dword [esi + 0x30c], ebx
jne 0x1005d55a
xor ecx, ecx
jmp 0x1005d560
mov ecx, dword [esi + 0x304]
mov eax, dword [esi + 0x30c]
shr eax, 2
cmp eax, ebx
jle 0x1005d5c0
mov ebp, ecx
mov dword [esp + 0x14], eax
mov edi, dword [ebp]
cmp edi, ebx
je 0x1005d5b2
mov eax, dword [edi + 0xc]
mov dword [edi], ebx
cmp eax, ebx
mov dword [edi + 4], ebx
mov dword [edi + 8], ebx
mov dword [edi + 0x14], ebx
je 0x1005d596
push eax
call dword [sym.imp.USER32.dll_DestroyIcon]
mov dword [edi + 0xc], ebx
mov eax, dword [edi + 0x10]
cmp eax, ebx
je 0x1005d5a9
push eax
call fcn.100d37e0
add esp, 4
mov dword [edi + 0x10], ebx
push edi
call fcn.100d37e0
add esp, 4
mov eax, dword [esp + 0x14]
add ebp, 4
dec eax
mov dword [esp + 0x14], eax
jne 0x1005d573
lea ecx, [esi + 0x2fc]
call fcn.1002fb60
cmp dword [esi + 0x440], 1
jne 0x1005d5e0
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov dword [esi + 0x440], ebx
mov ebp, dword [esi + 0x128]
xor edi, edi
cmp ebp, ebx
jle 0x1005d60d
mov eax, dword [esi + 0x124]
mov edx, dword [esi + 0x110]
push ebx
mov ecx, dword [eax + edi*4]
mov eax, dword [edx + edi*4]
push ecx
push eax
mov ecx, esi
call fcn.1005c320
inc edi
cmp edi, ebp
jl 0x1005d5ec
push 0xffffffffffffffff
push ebx
lea ecx, [esi + 0x10c]
call fcn.100d2bbd
push 0xffffffffffffffff
push ebx
lea ecx, [esi + 0x120]
call fcn.100d2bbd
mov eax, dword [esi + 0x4a0]
pop ebp
cmp eax, ebx
je 0x1005d640
call dword [sym.imp.ole32.dll_OleUninitialize]
mov dword [esi + 0x4a0], ebx
pop edi
pop esi
pop ebx
ret 4