Function at 0x5289d1
Capabilities:
Resolve function by parsing pe exports
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x200
push edi
mov eax, dword [0x82c0d8]
push eax
lea ecx, [ebp - 0x130]
call fcn.0052b3a0
mov ecx, dword [ebp + 0x10]
cmp dword [ecx], 0
jne 0x528a03
push 0x14
call fcn.004dda70
add esp, 4
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [ebp - 0x68], edx
mov eax, dword [ebp - 0x68]
push eax
push 0x7c7040
call fcn.0057d6e1
add esp, 8
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
cmp dword [ebp - 0x68], 0
je 0x528a72
mov edx, dword [ebp - 0x68]
cmp dword [edx], 0
je 0x528a72
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax]
mov edx, dword [ebp - 0x68]
mov eax, dword [edx]
mov edx, dword [eax]
call dword [edx + 0x10]
and eax, 0xff
test eax, eax
je 0x528a70
mov eax, dword [ebp - 0x68]
mov ecx, dword [eax]
push ecx
push 0x7c7060
call fcn.0057d6e1
add esp, 8
lea ecx, [ebp - 0x130]
call fcn.0052b3c0
jmp 0x529592
jmp 0x528ad7
push 0x1c
call fcn.005f9769
add esp, 4
mov dword [ebp - 0x1b4], eax
cmp dword [ebp - 0x1b4], 0
je 0x528a9e
mov ecx, dword [ebp - 0x1b4]
call fcn.00506af0
mov dword [ebp - 0x1f4], eax
jmp 0x528aa8
mov dword [ebp - 0x1f4], 0
mov edx, dword [ebp - 0x1f4]
mov dword [ebp - 0x1b0], edx
mov eax, dword [ebp - 0x1b0]
mov dword [ebp - 0x68], eax
push 0x1c
push 0
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.005e7b30
add esp, 0xc
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x68]
mov dword [eax], ecx
mov edx, dword [ebp - 0x68]
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp + 0x10]
xor ecx, ecx
cmp dword [eax + 0x30], 0
setne cl
mov byte [ebp - 8], cl
mov edx, dword [ebp + 0x10]
xor eax, eax
cmp dword [edx + 0x3c], 0
sete al
mov byte [ebp - 4], al
mov ecx, dword [ebp + 0x10]
xor edx, edx
cmp dword [ecx + 0x48], 0
setne dl
mov byte [ebp - 0x140], dl
mov eax, dword [ebp + 0x10]
xor ecx, ecx
cmp dword [eax + 0x54], 0
setne cl
mov byte [ebp - 0x154], cl
mov byte [ebp - 0x154], 0
mov edx, dword [ebp + 0x10]
xor eax, eax
cmp dword [edx + 0x60], 0
setne al
mov byte [ebp - 0x13c], al
mov dword [ebp - 0x12c], 0
mov ecx, 0x27
xor eax, eax
lea edi, [ebp - 0x128]
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0xc]
mov dword [ebp - 0x138], edx
cmp dword [ebp - 0x138], 0
jne 0x528b81
lea eax, [ebp - 0x12c]
push eax
call fcn.005187d0
add esp, 4
lea ecx, [ebp - 0x12c]
mov dword [ebp - 0x138], ecx
mov dword [ebp - 0x8c], 0
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x88]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x60], 0
mov ecx, 0x15
xor eax, eax
lea edi, [ebp - 0x5c]
rep stosd dword es:[edi], eax
mov edx, dword [ebp - 0x138]
mov eax, dword [edx + 0xc]
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x138]
mov edx, dword [ecx + 0x10]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x138]
mov ecx, dword [eax + 0x14]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x138]
mov eax, dword [edx + 0x18]
mov dword [ebp - 0x54], eax
mov ecx, dword [ebp - 0x138]
xor edx, edx
cmp dword [ecx + 0x1c], 0
setne dl
mov byte [ebp - 0x50], dl
mov eax, dword [ebp - 0x138]
add eax, 0x20
mov ecx, dword [eax]
mov dword [ebp - 0x4c], ecx
mov edx, dword [eax + 4]
mov dword [ebp - 0x48], edx
mov ecx, dword [eax + 8]
mov dword [ebp - 0x44], ecx
mov edx, dword [eax + 0xc]
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x138]
xor ecx, ecx
cmp dword [eax + 0x30], 0
setne cl
mov byte [ebp - 0x3c], cl
mov edx, dword [ebp - 0x138]
xor eax, eax
cmp dword [edx + 0x34], 0
setne al
mov byte [ebp - 0x3b], al
mov ecx, dword [ebp - 0x138]
xor edx, edx
cmp dword [ecx + 0x38], 0
setne dl
mov byte [ebp - 0x3a], dl
mov eax, dword [ebp - 0x138]
xor ecx, ecx
cmp dword [eax + 0x3c], 0
setne cl
mov byte [ebp - 0x39], cl
mov edx, dword [ebp - 0x138]
xor eax, eax
cmp dword [edx + 0x40], 0
setne al
mov byte [ebp - 0x38], al
mov ecx, dword [ebp - 0x138]
xor edx, edx
cmp dword [ecx + 0x44], 0
setne dl
mov byte [ebp - 0x37], dl
mov eax, dword [ebp - 0x138]
xor ecx, ecx
cmp dword [eax + 0x48], 0
setne cl
mov byte [ebp - 0x36], cl
mov edx, dword [ebp - 0x138]
xor eax, eax
cmp dword [edx + 0x4c], 0
setne al
mov byte [ebp - 0x35], al
mov ecx, dword [ebp - 0x138]
xor edx, edx
cmp dword [ecx + 0x50], 0
setne dl
mov byte [ebp - 0x34], dl
mov eax, dword [ebp - 0x138]
mov ecx, dword [eax + 0x58]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x138]
xor eax, eax
cmp dword [edx + 0x5c], 0
setne al
mov byte [ebp - 0x2c], al
lea ecx, [ebp - 0x148]
call fcn.005013a0
lea ecx, [ebp - 0x150]
call fcn.005013a0
lea ecx, [ebp - 0x64]
call fcn.005013a0
mov ecx, dword [ebp - 0x138]
cmp dword [ecx + 0x60], 0
je 0x528e08
mov edx, dword [ebp - 0x138]
mov eax, dword [edx + 0x60]
cmp dword [eax + 0xc], 0
je 0x528d41
push 0
mov ecx, dword [ebp - 0x138]
mov edx, dword [ecx + 0x60]
mov eax, dword [edx + 0xc]
push eax
lea ecx, [ebp - 0x1b8]
push ecx
call fcn.00507f20
add esp, 0xc
push eax
lea ecx, [ebp - 0x148]
call fcn.004e0050
lea ecx, [ebp - 0x1b8]
call fcn.004e0030
mov edx, dword [ebp - 0x138]
mov eax, dword [edx + 0x60]
cmp dword [eax + 0x10], 0
je 0x528d85
push 0
mov ecx, dword [ebp - 0x138]
mov edx, dword [ecx + 0x60]
mov eax, dword [edx + 0x10]
push eax
lea ecx, [ebp - 0x1bc]
push ecx
call fcn.00507f20
add esp, 0xc
push eax
lea ecx, [ebp - 0x150]
call fcn.004e0050
lea ecx, [ebp - 0x1bc]
call fcn.004e0030
mov edx, dword [ebp - 0x138]
mov eax, dword [edx + 0x60]
cmp dword [eax + 4], 0
je 0x528dc6
push 0
mov ecx, dword [ebp - 0x138]
mov edx, dword [ecx + 0x60]
mov eax, dword [edx + 4]
push eax
lea ecx, [ebp - 0x1c0]
push ecx
call fcn.00507f20
add esp, 0xc
push eax
lea ecx, [ebp - 0x64]
call fcn.004e0050
lea ecx, [ebp - 0x1c0]
call fcn.004e0030
lea ecx, [ebp - 0x148]
call fcn.004e1270
mov edx, dword [ebp - 0x138]
mov ecx, dword [edx + 0x60]
mov dword [ecx + 0xc], eax
lea ecx, [ebp - 0x150]
call fcn.004e1270
mov edx, dword [ebp - 0x138]
mov ecx, dword [edx + 0x60]
mov dword [ecx + 0x10], eax
lea ecx, [ebp - 0x64]
call fcn.004e1270
mov edx, dword [ebp - 0x138]
mov ecx, dword [edx + 0x60]
mov dword [ecx + 4], eax
mov edx, dword [ebp - 0x138]
mov eax, dword [edx + 0x60]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x138]
mov edx, dword [ecx + 0x64]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x138]
xor ecx, ecx
cmp dword [eax + 0x68], 0
setne cl
mov byte [ebp - 0x1f], cl
mov edx, dword [ebp - 0x138]
xor eax, eax
cmp dword [edx + 0x6c], 0
setne al
mov byte [ebp - 0x1e], al
mov ecx, dword [ebp - 0x138]
xor edx, edx
cmp dword [ecx + 0x70], 0
setne dl
mov byte [ebp - 0x1d], dl
mov eax, dword [ebp - 0x138]
xor ecx, ecx
cmp dword [eax + 0x74], 0
setne cl
mov byte [ebp - 0x1c], cl
mov edx, dword [ebp - 0x138]
xor eax, eax
cmp dword [edx + 0x78], 0
setne al
mov byte [ebp - 0x1b], al
mov ecx, dword [ebp - 0x138]
xor edx, edx
cmp dword [ecx + 0x7c], 0
setne dl
mov byte [ebp - 0x1a], dl
mov eax, dword [ebp - 0x138]
xor ecx, ecx
cmp dword [eax + 0x80], 0
setne cl
mov byte [ebp - 0x19], cl
mov edx, dword [ebp - 0x138]
xor eax, eax
cmp dword [edx + 0x84], 0
setne al
mov byte [ebp - 0x18], al
mov ecx, dword [ebp - 0x138]
xor edx, edx
cmp dword [ecx + 0x88], 0
setne dl
mov byte [ebp - 0x17], dl
mov eax, dword [ebp - 0x138]
xor ecx, ecx
cmp dword [eax + 0x8c], 0
setne cl
mov byte [ebp - 0x16], cl
mov edx, dword [ebp - 0x138]
xor eax, eax
cmp dword [edx + 0x90], 0
setne al
mov byte [ebp - 0x15], al
mov ecx, dword [ebp - 0x138]
xor edx, edx
cmp dword [ecx + 0x94], 0
setne dl
mov byte [ebp - 0x14], dl
mov eax, dword [ebp - 0x138]
mov ecx, dword [eax + 0x18]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x138]
mov eax, dword [edx + 0x98]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x138]
mov edx, dword [ecx + 0x9c]
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x6c]
cmp dword [eax], 0
jne 0x528f46
call fcn.00529597
mov ecx, dword [ebp - 0x6c]
mov dword [ecx], eax
lea ecx, [ebp - 0x14c]
call fcn.005013a0
mov edx, dword [ebp - 0x138]
cmp dword [edx + 0x98], 0
je 0x5290d5
mov eax, dword [ebp - 0x138]
mov ecx, dword [eax + 0x98]
movsx edx, byte [ecx]
test edx, edx
je 0x5290d5
push 0x3a8
push 0
mov eax, dword [ebp - 0x138]
mov ecx, dword [eax + 0x98]
push ecx
lea edx, [ebp - 0x1c4]
push edx
call fcn.004f5320
add esp, 0x10
push eax
lea ecx, [ebp - 0x14c]
call fcn.004e07b0
lea ecx, [ebp - 0x1c4]
call fcn.004e0030
push str.__remote_debugging_port
lea ecx, [ebp - 0x14c]
call fcn.004e1270
push eax
call fcn.005e87a1
add esp, 8
mov dword [ebp - 0x158], eax
cmp dword [ebp - 0x158], 0
je 0x5290d0
mov eax, dword [ebp - 0x158]
add eax, 0x32
mov dword [ebp - 0x158], eax
mov ecx, dword [ebp - 0x158]
xor edx, edx
mov dx, word [ecx]
cmp edx, 0x22
jne 0x52900f
mov eax, dword [ebp - 0x158]
add eax, 2
mov dword [ebp - 0x158], eax
mov dword [ebp - 0x184], 0
mov ecx, dword [ebp - 0x158]
xor edx, edx
mov dx, word [ecx]
test edx, edx
je 0x5290b8
mov eax, dword [ebp - 0x158]
mov cx, word [eax]
mov word [ebp - 0x188], cx
mov edx, dword [ebp - 0x158]
add edx, 2
mov dword [ebp - 0x158], edx
mov eax, dword [ebp - 0x188]
and eax, 0xffff
cmp eax, 0x30
jl 0x529092
mov ecx, dword [ebp - 0x188]
and ecx, 0xffff
cmp ecx, 0x39
jg 0x529092
mov edx, dword [ebp - 0x184]
mov ax, word [ebp - 0x188]
mov word [ebp + edx*2 - 0x180], ax
mov ecx, dword [ebp - 0x184]
add ecx, 1
mov dword [ebp - 0x184], ecx
jmp 0x5290b3
mov edx, dword [ebp - 0x184]
mov word [ebp + edx*2 - 0x180], 0
mov eax, dword [ebp - 0x184]
add eax, 1
mov dword [ebp - 0x184], eax
jmp 0x5290b8
jmp 0x529019
lea ecx, [ebp - 0x180]
push ecx
call fcn.0052eb20
add esp, 4
mov edx, dword [ebp - 0x138]
mov dword [edx + 0xc], eax
jmp 0x5293a2
push 1
push 0x3a8
push 0
mov eax, dword [ebp - 0x138]
mov ecx, dword [eax + 4]
push ecx
lea edx, [ebp - 0x1c8]
push edx
call fcn.004f5320
add esp, 0x10
push eax
lea ecx, [ebp - 0x14c]
call fcn.004e07e0
lea ecx, [ebp - 0x1c8]
call fcn.004e0030
mov eax, dword [ebp - 0x138]
cmp dword [eax], 0
jne 0x529177
push 0x10
call fcn.005f9769
add esp, 4
mov dword [ebp - 0x1d0], eax
cmp dword [ebp - 0x1d0], 0
je 0x529153
lea ecx, [ebp - 0x1d4]
push ecx
lea edx, [ebp - 0x1d8]
push edx
mov ecx, dword [ebp - 0x1d0]
call fcn.00518ad0
mov dword [ebp - 0x1f8], eax
jmp 0x52915d
mov dword [ebp - 0x1f8], 0
mov eax, dword [ebp - 0x1f8]
mov dword [ebp - 0x1cc], eax
mov ecx, dword [ebp - 0x138]
mov edx, dword [ebp - 0x1cc]
mov dword [ecx], edx
mov eax, dword [ebp - 0x138]
mov ecx, dword [eax]
mov dword [ebp - 0x198], ecx
mov ecx, dword [ebp - 0x198]
call fcn.0052ebf0
mov dword [ebp - 0x194], eax
mov edx, dword [ebp - 0x194]
shl edx, 1
mov dword [ebp - 0x1a0], edx
mov eax, dword [ebp - 0x1a0]
shl eax, 3
push eax
call fcn.005f9769
add esp, 4
mov dword [ebp - 0x1e0], eax
cmp dword [ebp - 0x1e0], 0
je 0x5291ed
push fcn.00518b50
mov ecx, dword [ebp - 0x1a0]
push ecx
push 8
mov edx, dword [ebp - 0x1e0]
push edx
call fcn.0052b420
mov eax, dword [ebp - 0x1e0]
mov dword [ebp - 0x1fc], eax
jmp 0x5291f7
mov dword [ebp - 0x1fc], 0
mov ecx, dword [ebp - 0x1fc]
mov dword [ebp - 0x1dc], ecx
mov edx, dword [ebp - 0x1dc]
mov dword [ebp - 0x18c], edx
mov dword [ebp - 0x190], 0
lea eax, [ebp - 0x19c]
push eax
mov ecx, dword [ebp - 0x198]
call fcn.0052ebb0
jmp 0x529238
lea ecx, [ebp - 0x19c]
call fcn.0052ece0
lea ecx, [ebp - 0x1e4]
push ecx
mov ecx, dword [ebp - 0x198]
call fcn.0052ebd0
push eax
lea ecx, [ebp - 0x19c]
call fcn.0052ed00
and eax, 0xff
test eax, eax
je 0x5292d0
lea ecx, [ebp - 0x19c]
call fcn.0052ecc0
add eax, 4
mov dword [ebp - 0x1a4], eax
mov edx, dword [ebp - 0x190]
mov eax, dword [ebp - 0x18c]
mov ecx, dword [ebp - 0x1a4]
mov ecx, dword [ecx]
mov dword [eax + edx*8], ecx
mov edx, dword [ebp - 0x190]
mov eax, dword [ebp - 0x18c]
mov ecx, dword [ebp - 0x1a4]
mov ecx, dword [ecx + 4]
mov dword [eax + edx*8 + 4], ecx
mov edx, dword [ebp - 0x190]
add edx, 1
mov dword [ebp - 0x190], edx
mov eax, dword [ebp - 0x1a4]
mov dword [eax], 0
mov ecx, dword [ebp - 0x1a4]
mov dword [ecx + 4], 0
jmp 0x52922d
push 0
push 0
lea ecx, [ebp - 0x14c]
call fcn.004e1270
push eax
mov edx, dword [ebp - 0x194]
push edx
mov eax, dword [ebp - 0x18c]
push eax
mov ecx, dword [ebp - 0x6c]
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x6c]
mov eax, dword [edx]
mov edx, dword [eax]
call dword [edx + 0x2c]
push eax
lea ecx, [ebp - 0x14c]
call fcn.00500cf0
mov dword [ebp - 0x190], 0
jmp 0x529324
mov eax, dword [ebp - 0x190]
add eax, 1
mov dword [ebp - 0x190], eax
mov ecx, dword [ebp - 0x190]
cmp ecx, dword [ebp - 0x194]
jae 0x529387
mov edx, dword [ebp - 0x190]
mov eax, dword [ebp - 0x18c]
mov ecx, dword [eax + edx*8 + 4]
mov dword [ebp - 0x1a8], ecx
cmp dword [ebp - 0x1a8], 0xffff
jle 0x52936d
mov edx, dword [ebp - 0x190]
mov eax, dword [ebp - 0x18c]
mov ecx, dword [eax + edx*8 + 4]
push ecx
call fcn.004e04f0
add esp, 4
mov edx, dword [ebp - 0x190]
mov eax, dword [ebp - 0x18c]
mov ecx, dword [eax + edx*8]
push ecx
call fcn.004e04f0
add esp, 4
jmp 0x529315
mov edx, dword [ebp - 0x18c]
mov dword [ebp - 0x1e8], edx
mov eax, dword [ebp - 0x1e8]
push eax
call fcn.005f9792
add esp, 4
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0x78], edx
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x24]
mov dword [ebp - 0x74], ecx
mov edx, dword [ebp - 0x138]
mov ax, word [edx + 0xc]
mov word [ebp - 0x84], ax
lea ecx, [ebp - 0x14c]
call fcn.004e1270
mov dword [ebp - 0x88], eax
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x8c], ecx
push 0x3a8
push 0
mov edx, dword [ebp - 0x138]
mov eax, dword [edx + 8]
push eax
lea ecx, [ebp - 0x144]
push ecx
call fcn.004f5320
add esp, 0x10
mov edx, dword [ebp - 0x138]
cmp dword [edx + 8], 0
je 0x529429
mov eax, dword [ebp - 0x138]
mov ecx, dword [eax + 8]
movsx edx, byte [ecx]
test edx, edx
je 0x529429
lea ecx, [ebp - 0x144]
call fcn.004e1270
mov dword [ebp - 0x70], eax
mov eax, dword [ebp - 0x6c]
mov ecx, dword [eax]
push ecx
push 0x7c70c8
call fcn.0057d6e1
add esp, 8
mov dword [ebp - 0x134], 0
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [ebp - 0x68]
mov dword [eax], ecx
mov edx, dword [ebp - 0x74]
push edx
mov eax, dword [ebp - 0x78]
push eax
mov cl, byte [ebp - 0x13c]
push ecx
mov dl, byte [ebp - 0x154]
push edx
mov al, byte [ebp - 0x140]
push eax
mov cl, byte [ebp - 8]
push ecx
mov dl, byte [ebp - 4]
push edx
lea eax, [ebp - 0x8c]
push eax
mov ecx, dword [ebp - 0x6c]
mov ecx, dword [ecx]
mov edx, dword [ebp - 0x6c]
mov eax, dword [edx]
mov edx, dword [eax]
call dword [edx + 0x70]
and eax, 0xff
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
cmp dword [eax], 1
jne 0x5294b1
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov dword [edx], 0
push 0
call fcn.005e843a
push 0xffffffffffffffff
mov eax, dword [ebp - 0x6c]
push eax
mov ecx, 0x82c0d4
call fcn.0057ce50
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov eax, dword [ebp - 0x68]
mov dword [edx], eax
cmp dword [ebp - 0x134], 0
je 0x5294ee
mov ecx, dword [ebp - 0x134]
cmp dword [ecx], 0
je 0x5294ee
mov edx, dword [ebp - 0x134]
push edx
call fcn.004e3a28
add esp, 4
mov eax, dword [ebp - 0x138]
cmp dword [eax], 0
je 0x529553
mov ecx, dword [ebp - 0x138]
mov edx, dword [ecx]
mov dword [ebp - 0x1ac], edx
mov eax, dword [ebp - 0x1ac]
mov dword [ebp - 0x1f0], eax
mov ecx, dword [ebp - 0x1f0]
mov dword [ebp - 0x1ec], ecx
cmp dword [ebp - 0x1ec], 0
je 0x52953d
push 1
mov ecx, dword [ebp - 0x1ec]
call fcn.0052b450
mov dword [ebp - 0x200], eax
jmp 0x529547
mov dword [ebp - 0x200], 0
mov edx, dword [ebp - 0x138]
mov dword [edx], 0
lea ecx, [ebp - 0x144]
call fcn.004e0030
lea ecx, [ebp - 0x14c]
call fcn.004e0030
lea ecx, [ebp - 0x64]
call fcn.004e0030
lea ecx, [ebp - 0x150]
call fcn.004e0030
lea ecx, [ebp - 0x148]
call fcn.004e0030
lea ecx, [ebp - 0x130]
call fcn.0052b3c0
pop edi
mov esp, ebp
pop ebp
ret