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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
sub esp, 0x1e8
push ecx
lea edi, [esp + 4]
mov eax, 0xcccccccc
mov ecx, 0x7a
rep stosd dword es:[edi], eax
pop ecx
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0
push 0
lea eax, [ebp - 0x14]
push eax
call fcn.0055bf30
add esp, 0x14
mov dword [ebp - 0x1c0], 0
mov dword [ebp - 0x1c4], 0
mov dword [ebp - 0x1c8], 0
mov byte [ebp - 0x1c9], 0
cmp dword [ebp + 0x18], 3
je 0x5519c5
cmp dword [ebp + 0x18], 7
jne 0x5519cc
mov byte [ebp - 0x1c9], 1
push 0x21
call dword [sym.imp.USER32.dll_GetSystemMetrics]
add eax, 0xffffffff
mov dword [ebp - 0x1c4], eax
push 0x20
call dword [sym.imp.USER32.dll_GetSystemMetrics]
add eax, 0xffffffff
mov dword [ebp - 0x1c8], eax
cmp byte [ebp - 0x1c9], 0
je 0x551a07
push 0x33
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x1c0], eax
jmp 0x551a15
push 4
call dword [sym.imp.USER32.dll_GetSystemMetrics]
mov dword [ebp - 0x1c0], eax
call fcn.004bc370
cmp eax, 0
je 0x551ab7
push 0x61b7c2
push 0
call fcn.004bc2d0
pop ecx
pop ecx
mov dword [ebp - 0x1d0], eax
cmp dword [ebp - 0x1d0], 0
je 0x551ab5
lea edx, [ebp - 0x1c]
mov dword [edx], 0
mov dword [edx + 4], 0
cmp byte [ebp - 0x1c9], 0
je 0x551a60
mov edx, 2
jmp 0x551a65
mov edx, 1
mov dword [ebp - 0x1d4], edx
lea eax, [ebp - 0x1c]
push eax
push 1
push 0
push 1
push dword [ebp - 0x1d4]
push 0
push dword [ebp - 0x1d0]
call fcn.004bc3f0
add esp, 0x1c
cmp eax, 0
jne 0x551aa9
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c0], eax
cmp byte [ebp - 0x1c9], 0
je 0x551aa9
add dword [ebp - 0x1c0], 2
push dword [ebp - 0x1d0]
call fcn.004bc300
pop ecx
jmp 0x551ad8
cmp byte [ebp - 0x1c9], 0
je 0x551acc
dec dword [ebp - 0x1c8]
dec dword [ebp - 0x1c4]
mov eax, dword [ebp - 0x1c4]
add dword [ebp - 0x1c0], eax
mov edx, dword [ebp - 0x1c0]
add edx, dword [ebp - 0x1c4]
add word [ebp - 0x10], dx
mov edx, dword [ebp - 0x1c8]
lea edx, [edx + edx]
add word [ebp - 0xe], dx
push 0xac
call fcn.00494950
pop ecx
cmp eax, 0
je 0x551b18
push 1
push 0x20
push dword [ebp - 0x10]
push dword [ebp - 0x14]
mov ecx, eax
call fcn.004055a0
mov eax, eax
mov dword [ebp - 0x1d8], eax
mov edx, dword [ebp - 0x1d8]
mov ecx, edx
mov esi, dword [ecx]
mov ecx, edx
call dword [esi + 0x3c]
mov dword [ebp - 0x1dc], eax
mov edx, dword [ebp + 0x34]
and edx, 0xff0000
sar edx, 0x10
imul edx, edx, 0x101
mov word [ebp - 0x24], dx
mov edx, dword [ebp + 0x34]
and edx, 0xff00
sar edx, 8
imul edx, edx, 0x101
mov word [ebp - 0x22], dx
mov edx, dword [ebp + 0x34]
and edx, 0xff
imul edx, edx, 0x101
mov word [ebp - 0x20], dx
lea eax, [ebp - 0x24]
push eax
mov edx, dword [ebp - 0x1dc]
mov ecx, edx
mov esi, dword [ecx]
mov ecx, edx
call dword [esi + 0x3c]
lea eax, [ebp - 0x14]
push eax
mov edx, dword [ebp - 0x1dc]
mov ecx, edx
mov esi, dword [ecx]
mov ecx, edx
call dword [esi + 0x4c]
movsx edx, word [ebp - 0x10]
sub edx, dword [ebp - 0x1c4]
push edx
movsx edx, word [ebp - 0xe]
sub edx, dword [ebp - 0x1c8]
push edx
push dword [ebp - 0x1c0]
push dword [ebp - 0x1c8]
lea eax, [ebp - 0x2c]
push eax
call fcn.0055bf30
add esp, 0x14
lea eax, [ebp - 0x30]
push eax
mov edx, dword [ebp - 0x1d8]
mov ecx, edx
mov esi, dword [ecx]
mov ecx, edx
call dword [esi + 0xd4]
mov dword [ebp - 0x1e0], eax
mov byte [ebp - 0x1e1], 1
call fcn.004bc370
cmp eax, 0
je 0x551d3c
push 0x61b7c2
push 0
call fcn.004bc2d0
pop ecx
pop ecx
mov dword [ebp - 0x1e8], eax
cmp dword [ebp - 0x1e8], 0
je 0x551d3c
push dword [ebp - 0x1c0]
movsx eax, word [ebp - 0xe]
push eax
push 0
push 0
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_SetRect]
movzx eax, byte [ebp + 0x20]
push eax
movzx eax, byte [ebp + 0x1c]
push eax
movzx eax, byte [ebp + 0x24]
push eax
push dword [ebp - 0x1e8]
lea eax, [ebp - 0x40]
push eax
movzx eax, byte [ebp - 0x1c9]
push eax
push dword [ebp - 0x1e0]
call fcn.005516a0
add esp, 0x1c
movsx edx, word [ebp - 0x10]
sub edx, dword [ebp - 0x1c4]
push edx
push dword [ebp - 0x1c8]
push dword [ebp - 0x1c0]
push 0
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push 0
lea eax, [ebp - 0x40]
push eax
push 1
push 7
push dword [ebp - 0x1e0]
push dword [ebp - 0x1e8]
call fcn.004bc3c0
add esp, 0x18
movsx edx, word [ebp - 0x10]
sub edx, dword [ebp - 0x1c4]
push edx
movsx eax, word [ebp - 0xe]
push eax
push dword [ebp - 0x1c0]
movsx edx, word [ebp - 0xe]
sub edx, dword [ebp - 0x1c8]
push edx
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push 0
lea eax, [ebp - 0x40]
push eax
push 1
push 8
push dword [ebp - 0x1e0]
push dword [ebp - 0x1e8]
call fcn.004bc3c0
add esp, 0x18
movsx eax, word [ebp - 0x10]
push eax
movsx eax, word [ebp - 0xe]
push eax
movsx edx, word [ebp - 0x10]
sub edx, dword [ebp - 0x1c4]
push edx
push 0
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push 0
lea eax, [ebp - 0x40]
push eax
push 1
push 9
push dword [ebp - 0x1e0]
push dword [ebp - 0x1e8]
call fcn.004bc3c0
add esp, 0x18
push dword [ebp - 0x1e8]
call fcn.004bc300
pop ecx
mov byte [ebp - 0x1e1], 0
cmp byte [ebp - 0x1e1], 0
je 0x551e9e
movsx eax, word [ebp - 0x10]
push eax
movsx eax, word [ebp - 0xe]
push eax
push 1
push 1
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_SetRect]
push 0x10
push 4
lea eax, [ebp - 0x40]
push eax
push dword [ebp - 0x1e0]
call dword [sym.imp.USER32.dll_DrawFrameControl]
mov eax, dword [ebp - 0x1c0]
add eax, 0xffffffff
push eax
movsx edx, word [ebp - 0xe]
sub edx, dword [ebp - 0x1c8]
push edx
push dword [ebp - 0x1c4]
push dword [ebp - 0x1c8]
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_SetRect]
movzx eax, byte [ebp + 0x20]
push eax
movzx eax, byte [ebp + 0x1c]
push eax
movzx eax, byte [ebp + 0x24]
push eax
lea eax, [ebp - 0x40]
push eax
movzx eax, byte [ebp - 0x1c9]
push eax
push dword [ebp - 0x1e0]
call fcn.00551230
add esp, 0x18
push 0
lea eax, [ebp - 0x24]
push eax
push 1
call fcn.004039c0
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
mov edx, dword [ebp - 0x1dc]
mov ecx, edx
mov esi, dword [ecx]
mov ecx, edx
call dword [esi + 0x3c]
push 0
push 0
mov edx, dword [ebp - 0x1dc]
mov ecx, edx
mov esi, dword [ecx]
mov ecx, edx
call dword [esi + 0x74]
push 0
movsx eax, word [ebp - 0xe]
push eax
mov edx, dword [ebp - 0x1dc]
mov ecx, edx
mov esi, dword [ecx]
mov ecx, edx
call dword [esi + 0x78]
push 0
push 0
mov edx, dword [ebp - 0x1dc]
mov ecx, edx
mov esi, dword [ecx]
mov ecx, edx
call dword [esi + 0x74]
movsx eax, word [ebp - 0x10]
push eax
push 0
mov edx, dword [ebp - 0x1dc]
mov ecx, edx
mov esi, dword [ecx]
mov ecx, edx
call dword [esi + 0x78]
lea eax, [ebp - 0x24]
push eax
movsx eax, word [ebp - 0x10]
add eax, 0xffffffff
push eax
push 1
mov edx, dword [ebp - 0x1dc]
mov ecx, edx
mov esi, dword [ecx]
mov ecx, edx
call dword [esi + 0xd8]
lea eax, [ebp - 0x24]
push eax
movsx eax, word [ebp - 0x10]
add eax, 0xffffffff
push eax
push 0
mov edx, dword [ebp - 0x1dc]
mov ecx, edx
mov esi, dword [ecx]
mov ecx, edx
call dword [esi + 0xdc]
lea eax, [ebp - 0x24]
push eax
push 0
movsx eax, word [ebp - 0xe]
add eax, 0xffffffff
push eax
mov edx, dword [ebp - 0x1dc]
mov ecx, edx
mov esi, dword [ecx]
mov ecx, edx
call dword [esi + 0xdc]
lea edi, [ebp - 0x194]
mov eax, 0
mov ecx, 0x55
rep stosd dword es:[edi], eax
mov dword [ebp - 0x194], 0x154
push 0
lea eax, [ebp - 0x194]
push eax
push dword [ebp - 0x194]
push 0x29
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
cmp byte [ebp - 0x1c9], 0
je 0x551ef2
lea eax, [ebp - 0x194]
add eax, 0x5c
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov dword [ebp - 0x1ec], eax
jmp 0x551f08
lea eax, [ebp - 0x194]
add eax, 0x18
push eax
call dword [sym.imp.GDI32.dll_CreateFontIndirectA]
mov dword [ebp - 0x1ec], eax
push dword [ebp - 0x1ec]
push dword [ebp - 0x1e0]
call dword [sym.imp.GDI32.dll_SelectObject]
mov dword [ebp - 0x1f0], eax
push dword [ebp - 0x1c0]
movsx edx, word [ebp - 0xe]
sub edx, dword [ebp - 0x1c8]
push edx
push 1
mov eax, dword [ebp - 0x1c8]
add eax, 1
push eax
lea eax, [ebp - 0x40]
push eax
call dword [sym.imp.USER32.dll_SetRect]
cmp byte [ebp - 0x1c9], 0
jne 0x551f5e
push 0x31
call dword [sym.imp.USER32.dll_GetSystemMetrics]
add eax, 2
add dword [ebp - 0x40], eax
cmp byte [ebp - 0x1e1], 0
je 0x551f73
mov edx, dword [ebp - 0x1c4]
add edx, 0xffffffff
mov dword [ebp - 0x3c], edx
push 1
push dword [ebp - 0x1e0]
call dword [sym.imp.GDI32.dll_SetBkMode]
push 9
call dword [sym.imp.USER32.dll_GetSysColor]
push eax
push dword [ebp - 0x1e0]
call dword [sym.imp.GDI32.dll_SetTextColor]
push 0
push dword [ebp - 0x1e0]
call dword [sym.imp.GDI32.dll_SetTextAlign]
call fcn.004bc490
cmp eax, 0
je 0x552072
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1b8], eax
cmp dword [ebp - 0x1b8], 0
je 0x551fcc
mov edx, dword [ebp - 0x1b8]
inc dword [edx]
lea eax, [ebp - 0x198]
push eax
lea ecx, [ebp - 0x1b8]
call fcn.0058a430
cmp dword [ebp - 0x1b8], 0
je 0x551ff2
mov ecx, dword [ebp - 0x1b8]
call fcn.00589d70
cmp dword [ebp - 0x198], 0
je 0x552031
mov edx, dword [ebp - 0x198]
mov ebx, dword [0x63df38]
mov edx, dword [edx + 0x10]
cmp ebx, edx
jne 0x552024
mov edx, dword [ebp - 0x198]
mov edx, dword [edx + 0xc]
cmp edx, 0x80000000
sbb edx, 0xffffffff
sar edx, 1
jmp 0x552036
mov edx, dword [ebp - 0x198]
mov edx, dword [edx + 0xc]
shr edx, 1
jmp 0x552036
mov edx, 0
push 0x24
lea eax, [ebp - 0x40]
push eax
push edx
lea ecx, [ebp - 0x198]
call fcn.0058a750
push eax
push dword [ebp - 0x1e0]
call dword [sym.imp.USER32.dll_DrawTextW]
cmp dword [ebp - 0x198], 0
je 0x552101
mov ecx, dword [ebp - 0x198]
call fcn.00589d70
jmp 0x552101
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x1bc], eax
cmp dword [ebp - 0x1bc], 0
je 0x55208c
mov edx, dword [ebp - 0x1bc]
inc dword [edx]
lea eax, [ebp - 0x1bc]
push eax
lea eax, [ebp - 0x19c]
push eax
call fcn.00546e70
pop ecx
pop ecx
cmp dword [ebp - 0x1bc], 0
je 0x5520b5
mov ecx, dword [ebp - 0x1bc]
call fcn.00589d70
cmp dword [ebp - 0x19c], 0
je 0x5520c9
mov edx, dword [ebp - 0x19c]
mov edx, dword [edx + 0xc]
jmp 0x5520ce
mov edx, 0
push 0x24
lea eax, [ebp - 0x40]
push eax
push edx
lea ecx, [ebp - 0x19c]
call fcn.0058a720
push eax
push dword [ebp - 0x1e0]
call dword [sym.imp.USER32.dll_DrawTextA]
cmp dword [ebp - 0x19c], 0
je 0x552101
mov ecx, dword [ebp - 0x19c]
call fcn.00589d70
push dword [ebp - 0x1f0]
push dword [ebp - 0x1e0]
call dword [sym.imp.GDI32.dll_SelectObject]
push dword [ebp - 0x1ec]
call dword [sym.imp.GDI32.dll_DeleteObject]
push dword [ebp - 0x30]
mov edx, dword [ebp - 0x1d8]
mov ecx, edx
mov esi, dword [ecx]
mov ecx, edx
call dword [esi + 0xd8]
push 0
lea eax, [ebp - 0x24]
push eax
push 1
call fcn.004039c0
add esp, 0xc
lea eax, [ebp - 0x24]
push eax
mov edx, dword [ebp - 0x1dc]
mov ecx, edx
mov esi, dword [ecx]
mov ecx, edx
call dword [esi + 0x3c]
lea eax, [ebp - 0x2c]
push eax
mov edx, dword [ebp - 0x1dc]
mov ecx, edx
mov esi, dword [ecx]
mov ecx, edx
call dword [esi + 0x4c]
cmp dword [ebp + 0x2c], 0
je 0x55229a
lea eax, [ebp - 0x1a4]
push eax
lea eax, [ebp - 0x1a0]
push eax
mov eax, dword [ebp + 0x2c]
mov edx, dword [eax + 0x20]
mov ecx, edx
mov esi, dword [ecx]
mov ecx, edx
call dword [esi + 0x2c]
movsx ecx, word [ebp - 0x2a]
movsx edx, word [ebp - 0x26]
sub edx, ecx
cmp dword [ebp - 0x1a0], edx
jle 0x5521b3
movsx ecx, word [ebp - 0x2a]
movsx edx, word [ebp - 0x26]
sub edx, ecx
mov dword [ebp - 0x1a0], edx
movsx ecx, word [ebp - 0x2c]
movsx edx, word [ebp - 0x28]
sub edx, ecx
cmp dword [ebp - 0x1a4], edx
jle 0x5521d5
movsx ecx, word [ebp - 0x2c]
movsx edx, word [ebp - 0x28]
sub edx, ecx
mov dword [ebp - 0x1a4], edx
push dword [ebp - 0x1a4]
push dword [ebp - 0x1a0]
push 0
push 0
lea eax, [ebp - 0x1ac]
push eax
call fcn.0055bf30
add esp, 0x14
cmp byte [ebp + 0x30], 0
je 0x552224
mov edx, dword [ebp - 0x2c]
mov word [ebp - 0x1b4], dx
mov edx, dword [ebp - 0x2a]
mov word [ebp - 0x1b2], dx
mov edx, dword [ebp - 0x28]
mov word [ebp - 0x1b0], dx
mov edx, dword [ebp - 0x26]
mov word [ebp - 0x1ae], dx
jmp 0x552273
mov edx, dword [ebp - 0x1ac]
mov word [ebp - 0x1b4], dx
mov edx, dword [ebp - 0x1aa]
mov word [ebp - 0x1b2], dx
mov edx, dword [ebp - 0x1a8]
mov word [ebp - 0x1b0], dx
mov edx, dword [ebp - 0x1a6]
mov word [ebp - 0x1ae], dx
push dword [ebp - 0x1c0]
push dword [ebp - 0x1c8]
lea eax, [ebp - 0x1b4]
push eax
call fcn.0055bf60
add esp, 0xc
mov eax, dword [ebp + 0x2c]
movzx eax, byte [eax + 0x1c]
push eax
lea eax, [ebp - 0x1b4]
push eax
lea eax, [ebp - 0x1ac]
push eax
push dword [ebp - 0x1dc]
mov eax, dword [ebp + 0x2c]
mov ecx, dword [eax + 0x20]
call fcn.00404320
mov ecx, dword [ebp - 0x1dc]
call fcn.004a5cb0
call fcn.0043c850
push eax
call sym.X86RunHoudini.exe_CreateInstance
pop ecx
mov dword [ebp - 0x1f4], eax
mov eax, dword [ebp - 0x1f4]
mov ecx, dword [ebp - 0x1d8]
mov dword [eax + 0x20], ecx
mov eax, dword [ebp - 0x1f4]
lea esp, [ebp - 0xc]
pop edi
pop esi
pop ebx
pop ebp
ret