Function at 0x1005b5c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18c
mov ebx, ecx
mov eax, dword [0x101f1014]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x78]
test edi, edi
cmove edi, ecx
mov eax, dword [edi + 0x80]
test eax, eax
je 0x1005b5ff
cmp dword [eax], edx
jne 0x1005b5fa
mov ecx, dword [ebp + 0xc]
cmp dword [eax + 0xc], ecx
je 0x1005bd43
mov eax, dword [eax + 4]
jmp 0x1005b5e6
mov esi, dword [ebx]
test esi, esi
mov dword [ebp - 0x174], ebx
mov dword [ebp - 0x188], edx
mov dword [ebp - 0x184], edi
je 0x1005bff6
cmp word [esi + 0x12c], 0x17
jbe 0x1005bdc0
mov edx, dword [esi + 0x150]
test edx, edx
je 0x1005bd5a
mov eax, dword [edx]
mov dword [esi + 0x150], eax
inc dword [esi + 0x138]
xor eax, eax
mov dword [edx + 0x14], eax
mov dword [edx + 0x10], eax
xorps xmm0, xmm0
movups xmmword [edx], xmm0
mov eax, dword [edi + 0x80]
mov dword [edx + 4], eax
mov dword [edi + 0x80], edx
cmp word [esi + 0x12c], 0x1b
jbe 0x1005bdfd
mov eax, dword [esi + 0x150]
test eax, eax
je 0x1005bd8c
mov ecx, dword [eax]
mov dword [esi + 0x150], ecx
inc dword [esi + 0x138]
xorps xmm0, xmm0
movups xmmword [eax + 0xc], xmm0
movups xmmword [eax], xmm0
mov dword [edx + 8], eax
mov ebx, dword [edi + 8]
mov ecx, dword [ebx + 0xe0]
mov dword [eax + 0x18], ecx
mov dword [ebp - 0x190], eax
mov dword [ebx + 0xe0], eax
mov edi, dword [ebp - 0x188]
mov dword [edx], edi
mov eax, dword [ebp + 0xc]
mov dword [edx + 0xc], eax
xor eax, eax
dec eax
mov dword [edx + 0x10], eax
mov dword [ebp - 0x178], edx
mov dword [edx + 0x14], eax
lea ebx, [ebp - 0x124]
push 0x9c
push 0
push ebx
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
add esp, 0xc
movups xmmword [ebx + 0xc8], xmm0
movups xmmword [ebx + 0xd8], xmm0
movups xmmword [ebx + 0xe8], xmm0
movups xmmword [ebx + 0xf8], xmm0
movups xmmword [ebx + 0x104], xmm0
mov eax, dword [esi + 0x104]
mov dword [ebx + 0xbc], eax
lea eax, [ebp - 0x128]
mov dword [esi + 0x104], eax
mov dword [eax], esi
xor ebx, ebx
cmp byte [esi + 0x57], 0
jne 0x1005c04a
movups xmmword [ebp - 0x154], xmm0
movups xmmword [ebp - 0x160], xmm0
mov dword [ebp - 0x164], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xac], eax
mov eax, dword [ebp - 0x184]
mov dword [ebp - 0xb0], eax
mov eax, dword [edi]
mov dword [ebp - 0x28], eax
mov cl, byte [edi + 8]
mov byte [ebp - 0x8c], cl
mov edx, dword [ebp - 0x174]
mov ecx, dword [edx + 0x8c]
mov dword [ebp - 0x9c], ecx
mov cl, byte [edx + 0x19]
mov byte [ebp - 0x10f], cl
mov dword [ebp - 0x16c], ebx
test ebx, ebx
jne 0x1005b7a7
lea ecx, [ebp - 0x128]
call fcn.1002fa90
mov dword [ebp - 0x16c], eax
test eax, eax
je 0x1005c06c
mov eax, dword [edi]
test eax, eax
je 0x1005b7ef
push eax
push str.___TRIGGER__s
push esi
call fcn.10027ad0
add esp, 0xc
mov edx, dword [ebp - 0x16c]
mov ecx, dword [edx]
cmp byte [ecx + 0x57], 0
jne 0x1005c096
mov ecx, dword [edx + 0x68]
mov edx, dword [edx + 0x6c]
dec edx
lea edx, [edx + edx*4]
cmp byte [ecx + edx*4 + 1], 0
jne 0x1005be3c
test eax, eax
je 0x1005b7ef
lea ecx, [ecx + edx*4]
inc ecx
mov dword [ecx + 0xf], eax
mov byte [ecx], 0xfa
mov edx, dword [edi + 0xc]
test edx, edx
je 0x1005bd4b
xor eax, eax
mov ecx, esi
push eax
mov dword [ebp - 0x18c], 0
push eax
call fcn.10001810
add esp, 8
mov edi, eax
cmp byte [esi + 0x57], 0
jne 0x1005b851
lea ecx, [ebp - 0x164]
mov edx, edi
call fcn.10031340
test eax, eax
jne 0x1005b851
mov eax, dword [ebp - 0xf0]
dec eax
mov dword [ebp - 0xf0], eax
push 0x10
mov dword [ebp - 0x18c], eax
push eax
push edi
lea eax, [ebp - 0x128]
push eax
call fcn.10041490
add esp, 0x10
test edi, edi
je 0x1005b85e
mov ecx, esi
mov edx, edi
call fcn.1014f3a0
mov edi, dword [ebp - 0x188]
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x1005bc0b
lea eax, [ebp - 0x128]
mov ecx, dword [eax]
mov dword [ebp - 0x170], ecx
mov ecx, dword [eax + 8]
mov eax, dword [ebp + 0xc]
movzx eax, al
mov dword [ebp - 0x198], eax
xor ebx, ebx
mov dword [ebp - 0x17c], ecx
mov eax, dword [ebp - 0x198]
cmp dword [ebp + 0xc], 0xb
jne 0x1005b8a4
movzx eax, byte [esi + 1]
mov byte [ebp - 0x8a], al
mov eax, dword [esi + 0x24]
test eax, eax
je 0x1005b940
mov dword [ebp - 0x168], esi
push eax
push str.____s
push dword [ebp - 0x170]
call fcn.10027ad0
add esp, 0xc
mov edi, eax
mov ebx, dword [ebp - 0x17c]
mov eax, dword [ebx + 0x6c]
cmp dword [ebx + 0x70], eax
jle 0x1005be55
lea edx, [eax + 1]
mov dword [ebx + 0x6c], edx
mov esi, dword [ebx + 0x68]
lea edx, [eax + eax*4]
mov dword [esi + edx*4], 0xb5
movaps xmm0, xmmword [0x101b1470]
movups xmmword [esi + edx*4 + 4], xmm0
mov ecx, dword [ebx]
cmp byte [ecx + 0x57], 0
jne 0x1005bfd7
test eax, eax
mov esi, dword [ebp - 0x168]
js 0x1005baed
mov ecx, dword [ebx + 0x68]
lea eax, [eax + eax*4]
cmp byte [ecx + eax*4 + 1], 0
jne 0x1005bad2
test edi, edi
mov ebx, 0
je 0x1005b940
lea eax, [ecx + eax*4]
inc eax
mov dword [eax + 0xf], edi
mov byte [eax], 0xfa
movzx eax, byte [esi]
cmp eax, 0x81
je 0x1005b9c9
cmp eax, 0x7f
je 0x1005ba6b
cmp eax, 0x80
je 0x1005bf37
mov edx, dword [esi + 8]
xor eax, eax
mov ebx, dword [ebp - 0x170]
mov ecx, ebx
push eax
call fcn.1006a100
add esp, 4
mov edi, eax
mov byte [ebp - 0x144], 4
lea eax, [ebp - 0x140]
xorps xmm0, xmm0
movups xmmword [eax], xmm0
xor ecx, ecx
mov dword [eax + 0x10], ecx
lea ecx, [ebp - 0x128]
mov edx, edi
lea eax, [ebp - 0x144]
push eax
call fcn.10027e50
add esp, 4
test edi, edi
je 0x1005b9b7
mov ecx, ebx
mov edx, edi
push 1
call fcn.10021580
add esp, 4
xor ebx, ebx
mov esi, dword [esi + 0x28]
test esi, esi
jne 0x1005b894
jmp 0x1005bc0b
movzx eax, byte [ebp - 0x8a]
mov dword [ebp - 0x168], eax
mov edx, dword [esi + 0x14]
test edx, edx
je 0x1005c0e1
mov edi, dword [ebp - 0x170]
mov ecx, edi
push ebx
push ebx
call fcn.10001810
add esp, 8
mov dword [ebp - 0x180], eax
mov edx, dword [esi + 0x18]
mov ecx, edi
push ebx
call fcn.100015a0
add esp, 4
mov edi, eax
lea ebx, [ebp - 0x128]
mov ecx, ebx
mov edx, esi
call fcn.1005c140
mov ecx, ebx
xor ebx, ebx
mov edx, eax
push ebx
push dword [ebp - 0x168]
push dword [ebp - 0x180]
push edi
call fcn.10058450
add esp, 0x10
mov ecx, dword [ebp - 0x17c]
mov eax, dword [ecx + 0x6c]
cmp dword [ecx + 0x70], eax
jle 0x1005bef2
lea edx, [eax + 1]
mov dword [ecx + 0x6c], edx
mov edx, dword [ecx + 0x68]
lea eax, [eax + eax*4]
mov byte [edx + eax*4], 0x83
xorps xmm0, xmm0
movups xmmword [edx + eax*4 + 1], xmm0
mov dword [edx + eax*4 + 0x10], 0
jmp 0x1005b9b9
mov edx, dword [esi + 0x20]
mov ebx, dword [ebp - 0x170]
mov ecx, ebx
call fcn.1005c250
movzx edi, byte [ebp - 0x8a]
mov ecx, dword [esi + 0x1c]
test ecx, ecx
mov dword [ebp - 0x180], eax
mov dword [ebp - 0x194], edi
je 0x1005bed0
mov dword [ebp - 0x168], ecx
mov ecx, dword [ecx]
lea edx, [ecx*8 + 8]
movzx ecx, word [ebx + 0x12c]
cmp edx, ecx
ja 0x1005beb9
cmp edx, 0x80
ja 0x1005baf6
mov edi, dword [ebx + 0x150]
test edi, edi
jne 0x1005be72
jmp 0x1005bed7
lea edx, [ecx + eax*4]
mov ecx, dword [ebp - 0x17c]
push 0xfffffffffffffffa
push edi
call fcn.10035fc0
add esp, 8
xor ebx, ebx
jmp 0x1005b940
mov eax, dword [ebx + 0x6c]
dec eax
jmp 0x1005b91c
mov edi, dword [ebx + 0x148]
test edi, edi
jne 0x1005bf2a
mov edi, dword [ebx + 0x144]
test edi, edi
jne 0x1005bfbf
inc dword [ebx + 0x140]
mov ecx, ebx
push 0
call fcn.101372d0
add esp, 4
mov edi, eax
test eax, eax
mov ecx, dword [ebp - 0x168]
mov eax, 0
je 0x1005bb7e
mov eax, dword [ecx]
mov dword [edi], eax
mov al, byte [ecx + 4]
mov byte [edi + 4], al
cmp dword [ecx], 0
jle 0x1005be7f
xor ebx, ebx
mov eax, dword [ebp - 0x168]
mov edx, dword [eax + ebx*8 + 8]
mov ecx, dword [ebp - 0x170]
call fcn.10038840
mov ecx, dword [ebp - 0x168]
mov dword [edi + ebx*8 + 8], eax
mov eax, dword [ecx + ebx*8 + 0xc]
mov dword [edi + ebx*8 + 0xc], eax
inc ebx
cmp ebx, dword [ecx]
jl 0x1005bb4a
mov eax, edi
mov ebx, dword [ebp - 0x170]
mov dword [ebp - 0x168], eax
mov edx, dword [esi + 8]
mov ecx, ebx
push 0
call fcn.1006a100
add esp, 4
mov edi, eax
lea ebx, [ebp - 0x128]
mov ecx, ebx
mov edx, esi
call fcn.1005c140
mov ecx, ebx
mov edx, eax
push dword [ebp - 0x180]
push dword [ebp - 0x194]
push dword [ebp - 0x168]
push edi
call fcn.100516e0
add esp, 0x10
mov ecx, dword [ebp - 0x17c]
mov eax, dword [ecx + 0x6c]
cmp dword [ecx + 0x70], eax
jle 0x1005bf21
lea edx, [eax + 1]
mov dword [ecx + 0x6c], edx
mov edx, dword [ecx + 0x68]
lea eax, [eax + eax*4]
mov byte [edx + eax*4], 0x83
xorps xmm0, xmm0
movups xmmword [edx + eax*4 + 1], xmm0
mov dword [edx + eax*4 + 0x10], 0
jmp 0x1005b9b7
inc dword [ebx + 0x138]
mov ecx, dword [ebp - 0x168]
jmp 0x1005bb35
mov edi, dword [ebp - 0x174]
mov ebx, dword [ebp - 0x18c]
test ebx, ebx
mov esi, dword [ebp - 0x16c]
je 0x1005bc3b
mov ecx, dword [esi + 0xc]
not ebx
mov eax, dword [ecx + 0x38]
add eax, dword [ecx + 0x3c]
js 0x1005c0d1
mov eax, dword [esi + 0x6c]
mov ecx, dword [ecx + 0x40]
mov dword [ecx + ebx*4], eax
mov eax, dword [esi + 0x6c]
cmp dword [esi + 0x70], eax
jle 0x1005be86
lea ecx, [eax + 1]
mov dword [esi + 0x6c], ecx
mov ecx, dword [esi + 0x68]
lea eax, [eax + eax*4]
mov byte [ecx + eax*4], 0x46
xorps xmm0, xmm0
movups xmmword [ecx + eax*4 + 1], xmm0
mov dword [ecx + eax*4 + 0x10], 0
cmp dword [edi + 0x24], 0
mov edx, dword [ebp - 0x124]
jne 0x1005c0aa
mov dword [edi + 4], edx
mov eax, dword [ebp - 0x104]
mov dword [edi + 0x24], eax
mov ecx, dword [ebp - 0x11c]
mov dword [edi + 0xc], ecx
test eax, eax
mov ebx, dword [ebp - 0x190]
jne 0x1005bcd4
mov edx, dword [ebp - 0x184]
add edx, 0x64
mov eax, dword [ebp - 0x16c]
mov esi, dword [eax + 0x68]
mov ecx, dword [ebp - 0x16c]
call fcn.1014f540
mov eax, dword [ebp - 0x16c]
mov eax, dword [eax + 0x6c]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0x16c]
mov dword [eax + 0x68], 0
mov dword [ebx], esi
mov esi, dword [ebp - 0x16c]
mov eax, dword [ebp - 0xfc]
mov dword [ebx + 8], eax
mov eax, dword [ebp - 0x100]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x188]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x178]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 0x94]
mov dword [ecx + 0x14], eax
mov ecx, esi
call fcn.1012abc0
lea ecx, [ebp - 0x128]
call fcn.10020a50
mov ebx, dword [ebp - 0x174]
mov eax, dword [ebx]
mov dword [eax + 0x44], 0xffffffff
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10157a00
mov eax, dword [ebp - 0x178]
add esp, 0x18c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x178], eax
jmp 0x1005bd28
mov dword [ebp - 0x18c], 0
jmp 0x1005b864
mov edx, dword [esi + 0x14c]
test edx, edx
jne 0x1005be9f
mov edx, dword [esi + 0x148]
test edx, edx
jne 0x1005bf07
mov edx, dword [esi + 0x144]
test edx, edx
jne 0x1005bfa5
inc dword [esi + 0x140]
jmp 0x1005bdd3
mov eax, dword [esi + 0x14c]
test eax, eax
jne 0x1005beac
mov eax, dword [esi + 0x148]
test eax, eax
jne 0x1005bf14
mov eax, dword [esi + 0x144]
test eax, eax
jne 0x1005bfb2
mov edi, edx
inc dword [esi + 0x140]
jmp 0x1005be16
cmp dword [esi + 0x128], 0
je 0x1005bf8d
cmp byte [esi + 0x57], 0
jne 0x1005bdee
mov ecx, esi
mov edx, 0x18
push 0
call fcn.101372d0
add esp, 4
mov edx, eax
test eax, eax
jne 0x1005b645
mov dword [ebp - 0x178], 0
jmp 0x1005bd1f
cmp dword [esi + 0x128], 0
je 0x1005bf98
mov edi, edx
cmp byte [esi + 0x57], 0
jne 0x1005c116
mov ecx, esi
mov edx, 0x1c
push 0
call fcn.101372d0
add esp, 4
test eax, eax
mov edx, edi
mov edi, dword [ebp - 0x184]
jne 0x1005b68c
jmp 0x1005c118
lea edx, [ecx + edx*4]
mov ecx, dword [ebp - 0x16c]
push 0xfffffffffffffffa
push eax
call fcn.10035fc0
add esp, 8
jmp 0x1005b7ef
mov ecx, ebx
mov edx, 0xb5
push 0
push 1
push closesocket
call fcn.10021190
add esp, 0xc
jmp 0x1005b902
mov eax, dword [edi]
mov dword [ebx + 0x150], eax
jmp 0x1005bbfa
mov eax, edi
jmp 0x1005bb7e
xor eax, eax
mov ecx, esi
mov edx, 0x46
push eax
push eax
push eax
call fcn.10021190
add esp, 0xc
jmp 0x1005bc67
mov eax, dword [edx]
mov dword [esi + 0x14c], eax
jmp 0x1005b63f
mov ecx, dword [eax]
mov dword [esi + 0x14c], ecx
jmp 0x1005b686
cmp dword [ebx + 0x128], 0
je 0x1005bfcc
cmp byte [ebx + 0x57], 0
je 0x1005bb18
xor eax, eax
jmp 0x1005bb7e
mov edi, dword [ebx + 0x14c]
test edi, edi
je 0x1005baf6
mov eax, dword [edi]
mov dword [ebx + 0x14c], eax
jmp 0x1005bbfa
mov edx, 0x83
push ebx
push ebx
push ebx
call fcn.10021190
add esp, 0xc
jmp 0x1005b9b9
mov eax, dword [edx]
mov dword [esi + 0x148], eax
jmp 0x1005b63f
mov ecx, dword [eax]
mov dword [esi + 0x148], ecx
jmp 0x1005b686
mov edx, 0x83
xor ebx, ebx
jmp 0x1005bef7
mov eax, dword [edi]
mov dword [ebx + 0x148], eax
jmp 0x1005bbfa
mov edx, dword [esi + 0x14]
test edx, edx
je 0x1005c12e
mov ecx, dword [ebp - 0x170]
push ebx
push ebx
call fcn.10001810
add esp, 8
mov edi, eax
lea ebx, [ebp - 0x128]
mov ecx, ebx
mov edx, esi
call fcn.1005c140
mov ecx, ebx
mov edx, eax
push edi
call fcn.1005ea40
add esp, 4
mov ecx, dword [ebp - 0x17c]
mov edx, 0x83
xor eax, eax
push eax
push eax
push eax
call fcn.10030110
add esp, 0xc
jmp 0x1005b9b7
inc dword [esi + 0x13c]
jmp 0x1005bdd3
mov edi, edx
inc dword [esi + 0x13c]
jmp 0x1005be16
mov eax, dword [edx]
mov dword [esi + 0x144], eax
jmp 0x1005b63f
mov ecx, dword [eax]
mov dword [esi + 0x144], ecx
jmp 0x1005b686
mov eax, dword [edi]
mov dword [ebx + 0x144], eax
jmp 0x1005bbfa
inc dword [ebx + 0x13c]
jmp 0x1005bb18
test edi, edi
mov esi, dword [ebp - 0x168]
mov ebx, 0
je 0x1005b940
mov edx, edi
call fcn.1014f290
jmp 0x1005b940
mov dword [ebp - 0x178], 0
mov ecx, 0x18
xor edx, edx
call fcn.10142fa0
test eax, eax
je 0x1005bd1f
mov edi, eax
xor eax, eax
mov dword [edi + 0x14], eax
mov dword [edi + 0x10], eax
xorps xmm0, xmm0
movups xmmword [edi], xmm0
mov ecx, dword [ebp - 0x184]
mov eax, dword [ecx + 0x80]
mov dword [edi + 4], eax
mov dword [ecx + 0x80], edi
mov ecx, 0x1c
xor edx, edx
call fcn.10142fa0
jmp 0x1005be27
push str.out_of_memory
push eax
call fcn.10046a40
xorps xmm0, xmm0
lea eax, [ebp - 0x128]
add esp, 8
mov ebx, dword [ebp - 0x120]
jmp 0x1005b730
mov eax, dword [ebp - 0x174]
cmp dword [eax + 0x24], 0
mov edx, dword [ebp - 0x124]
je 0x1005c0f6
test edx, edx
je 0x1005bd0e
mov ecx, dword [ebp - 0x128]
call fcn.10129dd0
jmp 0x1005bd0e
test eax, eax
je 0x1005b7ef
mov edx, eax
call fcn.1014f290
jmp 0x1005b7ef
test edx, edx
mov ebx, dword [ebp - 0x190]
je 0x1005bcd4
mov ecx, dword [ebp - 0x128]
call fcn.10129dd0
mov eax, dword [ebp - 0x174]
mov eax, dword [eax + 0x24]
jmp 0x1005bc8c
mov edx, esi
push ebx
call fcn.100329e0
add esp, 4
jmp 0x1005bc3b
mov dword [ebp - 0x180], 0
mov edi, dword [ebp - 0x170]
jmp 0x1005b9f9
mov ecx, dword [ebp - 0x174]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x104]
mov dword [ecx + 0x24], eax
mov eax, dword [ebp - 0x11c]
mov dword [ecx + 0xc], eax
jmp 0x1005bd0e
mov edx, edi
mov dword [edx + 8], 0
mov dword [ebp - 0x178], 0
jmp 0x1005bd19
xor edi, edi
jmp 0x1005bf54