Function at 0x4c7df0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56b018
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x5b7de4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebp + 0x1c], 0
mov edi, dword [ebp + 0x18]
mov esi, dword [ebp + 0x14]
mov dword [ebp - 0x70], edi
jne 0x4c85bd
mov eax, dword [ebp + 0xc]
cmp eax, 0x110
jne 0x4c7e58
lea eax, [ebp - 0x68]
push eax
push esi
push dword [ebp + 0x10]
push 0x110
call fcn.004b4fb0
mov dword [edi], eax
mov eax, 1
jmp 0x4c85bf
cmp eax, 0x7b
jne 0x4c7f4f
movsx eax, si
xorps xmm0, xmm0
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x20]
push eax
push dword [ebx + 0x17c]
shr esi, 0x10
movsx esi, si
mov dword [ebp - 0x6c], esi
movups xmmword [ebp - 0x20], xmm0
call dword [sym.imp.USER32.dll_GetWindowRect]
push esi
push dword [ebp - 0x68]
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
je 0x4c7f3f
push 0xf4
push dword [0x5c89a0]
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_LoadMenuA]
mov esi, eax
push 0
push esi
mov dword [ebp - 0x78], esi
call dword [sym.imp.USER32.dll_GetSubMenu]
mov edi, eax
mov dword [ebp - 0x74], edi
push 0
push 0
push 0x31
push dword [ebx + 0x17c]
mov byte [ebp - 4], 1
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebx + 0x264], eax
add ebx, 0x1bc
mov ecx, ebx
call fcn.00424410
push edi
call dword [sym.imp.USER32.dll_IsMenu]
test eax, eax
je 0x4c7f31
mov cl, byte [ebx + 0x85]
or byte [ebx + 0x84], 0x10
test cl, 2
je 0x4c7f1f
mov al, cl
shr al, 2
xor al, cl
and al, 4
xor al, cl
mov byte [ebx + 0x85], al
push 0
push dword [ebp - 0x6c]
mov ecx, ebx
push dword [ebp - 0x68]
push 0x42
push edi
call fcn.00422b70
test esi, esi
je 0x4c7f3c
push esi
call dword [sym.imp.USER32.dll_DestroyMenu]
mov edi, dword [ebp - 0x70]
mov dword [edi], 0
mov eax, 1
jmp 0x4c85bf
cmp eax, 0xc65
jne 0x4c7f74
lea eax, [ebp - 0x68]
push eax
push esi
push dword [ebp + 0x10]
push 0xc65
call fcn.004bbab0
mov dword [edi], eax
mov eax, 1
jmp 0x4c85bf
cmp eax, 0xdf5
jne 0x4c7f99
lea eax, [ebp - 0x68]
push eax
push esi
push dword [ebp + 0x10]
push 0xdf5
call fcn.004bbab0
mov dword [edi], eax
mov eax, 1
jmp 0x4c85bf
cmp eax, 0xf85
jne 0x4c7fbe
lea eax, [ebp - 0x68]
push eax
push esi
push dword [ebp + 0x10]
push 0xf85
call fcn.004bbab0
mov dword [edi], eax
mov eax, 1
jmp 0x4c85bf
cmp eax, 0xc83
jne 0x4c7fe7
cmp dword [ebx + 0x274], 0
je 0x4c7f3f
call fcn.004a8eb0
mov dword [edi], 0
mov eax, 1
jmp 0x4c85bf
cmp eax, 0xe13
je 0x4c7fc5
cmp eax, 0xfa3
je 0x4c7fc5
cmp eax, 0x2f15
je 0x4c7fc5
cmp eax, 0xbee
je 0x4c7f3f
mov ecx, dword [ebp + 0x10]
cmp eax, 0x111
jne 0x4c80a6
movzx edx, cx
mov dword [ebp - 0x6c], 0x801a
cmp word [ebp - 0x6c], dx
jne 0x4c8046
lea eax, [ebp - 0x68]
shr ecx, 0x10
push eax
push esi
push 0x801a
push ecx
mov ecx, ebx
call fcn.004add80
mov dword [edi], eax
mov eax, 1
jmp 0x4c85bf
mov dword [ebp - 0x6c], 0x806d
cmp word [ebp - 0x6c], dx
jne 0x4c8074
lea eax, [ebp - 0x68]
shr ecx, 0x10
push eax
push esi
push 0x806d
push ecx
mov ecx, ebx
call fcn.004b1040
mov dword [edi], eax
mov eax, 1
jmp 0x4c85bf
mov dword [ebp - 0x6c], 0x806e
cmp word [ebp - 0x6c], dx
jne 0x4c8518
lea eax, [ebp - 0x68]
shr ecx, 0x10
push eax
push esi
push 0x806e
push ecx
mov ecx, ebx
call fcn.004aebe0
mov dword [edi], eax
mov eax, 1
jmp 0x4c85bf
cmp eax, 0x4e
jne 0x4c8518
cmp dword [esi + 4], 0x79
jne 0x4c816e
cmp dword [esi + 8], 0xfffffffe
jne 0x4c80e2
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], 1
push eax
push esi
push ecx
mov ecx, ebx
call fcn.004b2110
cmp dword [ebp - 0x68], 0
mov dword [edi], eax
jne 0x4c7e4e
mov ecx, dword [ebp + 0x10]
cmp dword [esi + 4], 0x79
jne 0x4c816e
cmp dword [esi + 8], 0xfffffffd
jne 0x4c8112
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], 1
push eax
push esi
push ecx
mov ecx, ebx
call fcn.004b2110
cmp dword [ebp - 0x68], 0
mov dword [edi], eax
jne 0x4c7e4e
cmp dword [esi + 4], 0x79
jne 0x4c816e
cmp dword [esi + 8], 0xfffffffb
jne 0x4c8140
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], 1
push eax
push esi
push dword [ebp + 0x10]
mov ecx, ebx
call fcn.004b2110
cmp dword [ebp - 0x68], 0
mov dword [edi], eax
jne 0x4c7e4e
cmp dword [esi + 4], 0x79
jne 0x4c816e
cmp dword [esi + 8], 0xfffffffa
jne 0x4c816e
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], 1
push eax
push esi
push dword [ebp + 0x10]
mov ecx, ebx
call fcn.004b2110
cmp dword [ebp - 0x68], 0
mov dword [edi], eax
jne 0x4c7e4e
mov eax, dword [esi + 4]
cmp eax, 0x79
jne 0x4c838a
cmp dword [esi + 8], 0xfffffffd
jne 0x4c819d
lea eax, [ebp - 0x74]
mov ecx, ebx
push eax
push 0
push 0
push 0
call fcn.004b1040
mov dword [edi], eax
mov eax, 1
jmp 0x4c85bf
cmp eax, 0x79
jne 0x4c838a
cmp dword [esi + 8], 0xffffff6a
jne 0x4c82cf
cmp dword [ebx + 0x19c], 0
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x6c], eax
je 0x4c81e6
test ecx, ecx
js 0x4c81e3
mov eax, dword [ebx + 0x18c]
mov edx, dword [ebx + 0x188]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x4c81e3
mov ecx, dword [edx + ecx*4]
jmp 0x4c81e6
or ecx, 0xffffffff
mov dword [ebp - 0x4c], vtable.DataTransferObjects::WarehouseDTO.0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0xf
mov byte [ebp - 0x40], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
lea eax, [ebp - 0x4c]
mov dword [ebp - 4], 2
push eax
push ecx
mov ecx, ebx
call fcn.0049cbe0
cmp dword [ebp - 0x48], 0
je case.default.0x4c823c
test byte [esi + 0xc], 1
je case.default.0x4c823c
mov eax, dword [ebp - 0x6c]
cmp eax, 3
ja case.default.0x4c823c
jmp dword [eax*4 + 0x4c85e0]
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.0040b5a0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
mov eax, dword [esi + 0x24]
push 0x5707c8
dec eax
push eax
push dword [esi + 0x20]
call fcn.0041ac20
add esp, 0x10
lea ecx, [ebp - 0x28]
call fcn.00408f00
jmp case.default.0x4c823c
test byte [ebp - 0x44], 1
mov eax, 0x573054
mov ecx, 0x573060
jmp 0x4c829e
test byte [ebp - 0x44], 2
jmp 0x4c8294
test byte [ebp - 0x44], 4
mov ecx, 0x576f60
mov eax, 0x576f54
cmove eax, ecx
push eax
mov eax, dword [esi + 0x24]
push 0x5707c8
dec eax
push eax
push dword [esi + 0x20]
call fcn.0041ac20
add esp, 0x10
lea ecx, [ebp - 0x4c]
call fcn.0048ea40
mov dword [edi], 0
mov eax, 1
jmp 0x4c85bf
cmp eax, 0x79
jne 0x4c838a
cmp dword [esi + 8], 0xffffff9b
jne 0x4c835d
test byte [esi + 0x1c], 8
je 0x4c7f3f
test byte [esi + 0x14], 2
je 0x4c7f3f
test byte [esi + 0x18], 1
jne 0x4c7f3f
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 2
push 0xffffffffffffffff
push 0x100c
push dword [ebx + 0x17c]
call edi
push eax
lea ecx, [ebx + 0x184]
call fcn.0049c8c0
mov esi, eax
mov dword [ebp - 0x54], 2
lea eax, [ebp - 0x64]
mov dword [ebp - 0x58], 8
push eax
push 0xffffffffffffffff
push 0x102b
push dword [ebx + 0x180]
call edi
push esi
mov ecx, ebx
call fcn.004a8620
mov edi, dword [ebp - 0x70]
mov eax, 1
mov dword [edi], 0
jmp 0x4c85bf
cmp eax, 0x79
jne 0x4c838a
cmp dword [esi + 8], 0xffffff94
jne 0x4c838a
push dword [esi + 0x10]
lea ecx, [ebx + 0x184]
call fcn.00462b30
cmp dword [ebx + 0x274], 0
je 0x4c7f3f
mov ecx, ebx
jmp 0x4c7fd2
cmp eax, 0x76
jne 0x4c83b7
cmp dword [esi + 8], 0xfffffffe
jne 0x4c83b7
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], 1
push eax
push esi
push dword [ebp + 0x10]
mov ecx, ebx
call fcn.004b8750
cmp dword [ebp - 0x68], 0
mov dword [edi], eax
jne 0x4c7e4e
cmp dword [esi + 4], 0x76
jne 0x4c8445
cmp dword [esi + 8], 0xfffffffd
jne 0x4c83e9
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], 1
push eax
push esi
push dword [ebp + 0x10]
mov ecx, ebx
call fcn.004b8750
cmp dword [ebp - 0x68], 0
mov dword [edi], eax
jne 0x4c7e4e
cmp dword [esi + 4], 0x76
jne 0x4c8445
cmp dword [esi + 8], 0xfffffffb
jne 0x4c8417
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], 1
push eax
push esi
push dword [ebp + 0x10]
mov ecx, ebx
call fcn.004b8750
cmp dword [ebp - 0x68], 0
mov dword [edi], eax
jne 0x4c7e4e
cmp dword [esi + 4], 0x76
jne 0x4c8445
cmp dword [esi + 8], 0xfffffffa
jne 0x4c8445
lea eax, [ebp - 0x68]
mov dword [ebp - 0x68], 1
push eax
push esi
push dword [ebp + 0x10]
mov ecx, ebx
call fcn.004b8750
cmp dword [ebp - 0x68], 0
mov dword [edi], eax
jne 0x4c7e4e
mov eax, dword [esi + 4]
cmp eax, 0x76
jne 0x4c8512
cmp dword [esi + 8], 0xffffff6a
jne 0x4c8475
lea eax, [ebp - 0x68]
mov ecx, ebx
push eax
push esi
push dword [ebp + 0x10]
call fcn.004b89a0
mov dword [edi], eax
mov eax, 1
jmp 0x4c85bf
cmp eax, 0x76
jne 0x4c8512
cmp dword [esi + 8], 0xffffff94
jne 0x4c8512
push dword [esi + 0x10]
lea ecx, [ebx + 0x1a0]
call fcn.00462b30
cmp dword [ebx + 0x274], 0
je 0x4c7f3f
push 2
push 0xffffffffffffffff
push 0x100c
push dword [ebx + 0x17c]
call dword [sym.imp.USER32.dll_SendMessageA]
cmp dword [ebx + 0x19c], 0
mov ecx, eax
je 0x4c84fa
test ecx, ecx
js 0x4c84f7
mov eax, dword [ebx + 0x18c]
mov edx, dword [ebx + 0x188]
sub eax, edx
sar eax, 2
cmp ecx, eax
jae 0x4c84f7
mov ecx, dword [edx + ecx*4]
push ecx
mov ecx, ebx
call fcn.004a8620
mov dword [edi], 0
mov eax, 1
jmp 0x4c85bf
or ecx, 0xffffffff
push ecx
mov ecx, ebx
call fcn.004a8620
mov dword [edi], 0
mov eax, 1
jmp 0x4c85bf
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
lea edx, [ebx + 0xdc]
cmp eax, 5
jne 0x4c858b
xor eax, eax
test edx, edx
cmove ebx, eax
cmp byte [edx + 0x1c], al
je 0x4c855f
push 0xe801
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [ebp + 0x10]
cmp ecx, 2
jne 0x4c8550
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4c8568
test ecx, ecx
jne 0x4c855f
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4c8568
cmp ecx, 1
je 0x4c7f3f
mov eax, esi
lea ecx, [ebx + 0xdc]
shr eax, 0x10
cwde
push eax
movsx eax, si
push eax
call fcn.00497190
mov dword [edi], 0
mov eax, 1
jmp 0x4c85bf
cmp eax, 0x24
jne 0x4c85bd
cmp dword [edx + 0x14], 0xffffffff
je 0x4c7f3f
cmp dword [edx + 0x18], 0xffffffff
je 0x4c7f3f
mov eax, dword [edx + 0x14]
mov dword [esi + 0x18], eax
mov eax, dword [edx + 0x18]
mov dword [esi + 0x1c], eax
mov eax, 1
mov dword [edi], 0
jmp 0x4c85bf
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005189ad
mov esp, ebp
pop ebp
ret 0x18