Function at 0x10005530
Capabilities:
Allocate or change rwx memory
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d8
push esi
mov dword [ebp - 0x1a8], 0
mov dword [ebp - 0x1c8], 0
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x1bc], 0
mov dword [ebp - 0x1b4], str.Outer
mov dword [ebp - 0xdc], 0
mov dword [ebp - 0xd8], 0
mov dword [ebp - 0xd4], 0
mov dword [ebp - 0x1b8], str.Left
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1a4], eax
cmp dword [ebp + 0xc], 0x40
jae 0x100055b4
xor eax, eax
jmp 0x10005a3b
mov ecx, dword [ebp - 0x1a4]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x100055cc
xor eax, eax
jmp 0x10005a3b
mov eax, dword [ebp - 0x1a4]
mov ecx, dword [eax + 0x3c]
add ecx, 0xf8
cmp dword [ebp + 0xc], ecx
jge 0x10005605
call dword [sym.imp.USER32.dll_GetFocus]
mov dword [ebp - 0x1a8], eax
mov edx, dword [ebp - 0x1a8]
add edx, dword [ebp - 0x1c8]
mov dword [ebp - 0x1a8], edx
xor eax, eax
jmp 0x10005a3b
mov eax, dword [ebp - 0x1a4]
mov ecx, dword [ebp - 0x1a4]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x1ac], ecx
push 0
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov dword [ebp - 0x1a8], eax
mov edx, dword [ebp - 0x1ac]
cmp dword [edx], 0x4550
je 0x10005651
xor eax, eax
jmp 0x10005a3b
mov edx, dword [ebp - 0x1ac]
movzx eax, word [edx + 0x16]
and eax, 0x2000
jne 0x10005683
mov ecx, dword [ebp - 0x1ac]
movzx edx, word [ecx + 0x16]
and edx, 2
je 0x10005683
mov eax, dword [ebp - 0x1ac]
movzx ecx, word [eax + 0x14]
cmp ecx, 0xe0
je 0x1000568a
xor eax, eax
jmp 0x10005a3b
mov edx, dword [ebp - 0x1ac]
add edx, 0xf8
mov dword [ebp - 0x1b0], edx
mov eax, dword [ebp - 0x1b0]
push eax
mov ecx, dword [ebp - 0x1ac]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x1a4]
push eax
call fcn.100052d0
add esp, 0x10
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
mov edx, dword [ebp + 0x1c]
cmp dword [edx], 0
jne 0x100056d1
xor eax, eax
jmp 0x10005a3b
push 0x40
push 0x1000
mov eax, dword [ebp + 0x1c]
mov ecx, dword [eax]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov edx, dword [ebp + 0x18]
mov dword [edx], eax
mov eax, dword [ebp + 0x18]
cmp dword [eax], 0
je 0x10005a36
mov ecx, dword [ebp - 0x1ac]
mov edx, dword [ecx + 0x54]
mov dword [ebp - 0x1d0], edx
mov dword [ebp - 0x1d4], 0
jmp 0x10005721
mov eax, dword [ebp - 0x1d4]
add eax, 1
mov dword [ebp - 0x1d4], eax
mov ecx, dword [ebp - 0x1ac]
movzx edx, word [ecx + 6]
cmp dword [ebp - 0x1d4], edx
jge 0x100057eb
lea eax, [ebp - 0xdc]
push eax
push 0
call dword [sym.imp.USER32.dll_ClientToScreen]
mov dword [ebp - 0xd8], eax
mov ecx, dword [ebp - 0xdc]
mov dword [ebp - 0x1a8], ecx
mov edx, dword [ebp - 0x1d4]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x1b0]
cmp dword [eax + edx + 0x14], 0
je 0x100057e6
mov ecx, dword [ebp - 0x1d4]
imul ecx, ecx, 0x28
mov edx, dword [ebp - 0x1b0]
mov eax, dword [edx + ecx + 0x14]
cmp eax, dword [ebp - 0x1d0]
jae 0x100057e6
push 0
call dword [sym.imp.KERNEL32.dll_FindAtomA]
movzx ecx, ax
mov dword [ebp - 0x1a8], ecx
mov edx, 0x3d
sub edx, dword [ebp - 0xdc]
imul edx, dword [ebp - 0x1a8]
mov dword [ebp - 0x1a8], edx
mov eax, dword [ebp - 0x1d4]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x1b0]
mov edx, dword [ecx + eax + 0x14]
mov dword [ebp - 0x1d0], edx
lea eax, [ebp - 0x1c8]
push eax
push 0
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ecx, dword [ebp - 0x1c8]
mov dword [ebp - 0xdc], ecx
jmp 0x10005712
mov edx, dword [ebp - 0x1d0]
push edx
mov eax, dword [ebp - 0x1a4]
push eax
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
push edx
call fcn.1000fa30
add esp, 0xc
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
add eax, dword [ecx + 0x3c]
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
lea edx, [ebp - 0xd0]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub eax, 2
mov dword [ebp - 0xd4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
add ecx, 0xf8
mov edx, dword [ebp + 0x14]
mov dword [edx], ecx
lea eax, [ebp - 0xdc]
push eax
push 0
call dword [sym.imp.USER32.dll_ClientToScreen]
mov dword [ebp - 0xd8], eax
mov ecx, dword [ebp - 0xdc]
mov dword [ebp - 0x1a8], ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [eax + 0x38]
push ecx
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [eax + 0x54]
push ecx
call fcn.10005270
add esp, 8
mov edx, dword [ebp + 0x18]
add eax, dword [edx]
mov dword [ebp - 0x1cc], eax
mov dword [ebp - 0x1d8], 0
jmp 0x100058a0
mov eax, dword [ebp - 0x1d8]
add eax, 1
mov dword [ebp - 0x1d8], eax
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
movzx eax, word [edx + 6]
cmp dword [ebp - 0x1d8], eax
jge 0x10005a36
mov ecx, dword [ebp - 0x1b4]
push ecx
lea edx, [ebp - 0x1a0]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 0x1d8]
imul eax, eax, 0x28
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
cmp dword [edx + eax + 0xc], 0
je 0x100058fb
mov eax, dword [ebp - 0x1d8]
imul eax, eax, 0x28
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x18]
mov ecx, dword [ecx]
add ecx, dword [edx + eax + 0xc]
mov dword [ebp - 0x1cc], ecx
mov edx, dword [ebp - 0x1d8]
imul edx, edx, 0x28
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
cmp dword [ecx + edx + 0x10], 0
je 0x10005a01
mov edx, dword [ebp - 0x1b8]
push edx
lea eax, [ebp - 0xd0]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov ecx, dword [ebp - 0x1b8]
push ecx
lea edx, [ebp - 0xd0]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov eax, dword [ebp - 0x1d8]
imul eax, eax, 0x28
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + eax + 0x10]
push eax
mov ecx, dword [ebp - 0x1d8]
imul ecx, ecx, 0x28
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov edx, dword [ebp - 0x1a4]
add edx, dword [eax + ecx + 0x14]
push edx
mov eax, dword [ebp - 0x1cc]
push eax
call fcn.1000fa30
add esp, 0xc
mov ecx, dword [ebp - 0x1d8]
imul ecx, ecx, 0x28
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov edx, dword [ebp - 0x1d8]
imul edx, edx, 0x28
mov esi, dword [ebp + 0x14]
mov esi, dword [esi]
mov eax, dword [eax + ecx + 8]
cmp eax, dword [esi + edx + 0x10]
jae 0x100059cf
mov ecx, dword [ebp + 0x10]
mov edx, dword [ecx]
mov eax, dword [edx + 0x38]
push eax
mov ecx, dword [ebp - 0x1d8]
imul ecx, ecx, 0x28
mov edx, dword [ebp + 0x14]
mov eax, dword [edx]
mov ecx, dword [eax + ecx + 0x10]
push ecx
call fcn.10005270
add esp, 8
add eax, dword [ebp - 0x1cc]
mov dword [ebp - 0x1cc], eax
jmp 0x100059ff
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
mov ecx, dword [eax + 0x38]
push ecx
mov edx, dword [ebp - 0x1d8]
imul edx, edx, 0x28
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov edx, dword [ecx + edx + 8]
push edx
call fcn.10005270
add esp, 8
add eax, dword [ebp - 0x1cc]
mov dword [ebp - 0x1cc], eax
jmp 0x10005a31
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x38]
push edx
mov eax, dword [ebp - 0x1d8]
imul eax, eax, 0x28
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov eax, dword [edx + eax + 8]
push eax
call fcn.10005270
add esp, 8
add eax, dword [ebp - 0x1cc]
mov dword [ebp - 0x1cc], eax
jmp 0x10005891
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret