Function at 0x4c7580
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x56afca
mov eax, dword fs:[0]
push eax
sub esp, 0x234
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 - 0x240], edi
jne 0x4c7dca
mov eax, dword [ebp + 0xc]
cmp eax, 0x110
jne 0x4c75f1
lea eax, [ebp - 0x238]
push eax
push esi
push dword [ebp + 0x10]
push 0x110
call fcn.004b4bd0
mov dword [edi], eax
mov eax, 1
jmp 0x4c7dcc
cmp eax, 0x7b
jne 0x4c7614
lea eax, [ebp - 0x238]
push eax
push esi
push dword [ebp + 0x10]
push 0x7b
call fcn.004ac2c0
mov dword [edi], eax
mov eax, 1
jmp 0x4c7dcc
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x23c], 1
cmp eax, 0x111
jne 0x4c7a60
movzx edx, cx
mov dword [ebp - 0x238], 2
cmp word [ebp - 0x238], dx
jne 0x4c765d
push 2
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov dword [edi], 0
mov eax, 1
jmp 0x4c7dcc
cmp word [ebp - 0x23c], dx
jne 0x4c7681
push 1
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_EndDialog]
mov dword [edi], 0
mov eax, 1
jmp 0x4c7dcc
mov dword [ebp - 0x23c], 0x801a
cmp word [ebp - 0x23c], dx
jne 0x4c77b6
mov dword [ebp - 0x58], vtable.DataTransferObjects::WarehouseDTO.0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0xf
mov byte [ebp - 0x4c], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
sub esp, 0x18
mov dword [ebp - 4], 0
mov ecx, esp
push 5
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0xf
push 0x576c6c
mov byte [ecx], 0
call fcn.0040a4a0
lea ecx, [ebp - 0x58]
call fcn.004caa90
lea ecx, [ebp - 0x234]
call fcn.0041e010
lea eax, [ebp - 0x58]
mov dword [ebp - fcn.00429f30], vtable.Presentation::WarehouseWizardDlg.0
mov dword [ebp - method.Presentation::WarehouseWizardDlg.1.virtual_0], vtable.Presentation::WarehouseWizardDlg.1.0
mov dword [ebp - method.Presentation::WizardDlg.2.virtual_0], vtable.Presentation::WarehouseWizardDlg.2.0
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], 1
mov dword [ebp - 0x88], 0x1a8
push 0
push dword [ebx + 4]
lea ecx, [ebp - 0x234]
mov byte [ebp - 4], 3
call fcn.00422ad0
cmp eax, 2
je 0x4c7775
call fcn.0049fbd0
mov esi, eax
mov dword [ebp - 0x240], esi
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 4
push eax
mov ecx, esi
call fcn.004f9b60
mov byte [ebp - 4], 5
test esi, esi
je 0x4c7775
call fcn.004992c0
lea ecx, [ebp - 0x234]
mov dword [ebp - fcn.00429f30], vtable.Presentation::WarehouseWizardDlg.0
mov dword [ebp - method.Presentation::WarehouseWizardDlg.1.virtual_0], vtable.Presentation::WarehouseWizardDlg.1.0
mov dword [ebp - method.Presentation::WizardDlg.2.virtual_0], vtable.Presentation::WarehouseWizardDlg.2.0
call fcn.0041ed40
lea ecx, [ebp - 0x58]
call fcn.0048ea40
mov dword [edi], 0
mov eax, 1
jmp 0x4c7dcc
mov dword [ebp - 0x23c], 0x806d
cmp word [ebp - 0x23c], dx
jne 0x4c77ed
lea eax, [ebp - 0x238]
shr ecx, 0x10
push eax
push esi
push 0x806d
push ecx
mov ecx, ebx
call fcn.004b0ee0
mov dword [edi], eax
mov eax, 1
jmp 0x4c7dcc
mov dword [ebp - 0x23c], 0x806e
cmp word [ebp - 0x23c], dx
jne 0x4c788e
push 2
push 0xffffffffffffffff
push 0x100c
push dword [ebx + 0xe8]
call dword [sym.imp.USER32.dll_SendMessageA]
test eax, eax
js 0x4c77a6
mov dword [ebp - 0x34], vtable.DataTransferObjects::WarehouseDTO.0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 6
push ecx
push eax
mov ecx, ebx
call fcn.0049cb10
cmp dword [ebp - 0x30], 0
je 0x4c7886
call fcn.0049fbd0
mov esi, eax
mov dword [ebp - 0x240], esi
lea eax, [ebp - 0x34]
mov byte [ebp - 4], 7
push eax
mov ecx, esi
call fcn.004f9ea0
mov byte [ebp - 4], 8
test esi, esi
je 0x4c7886
call fcn.004992c0
lea ecx, [ebp - 0x34]
jmp 0x4c77a1
mov dword [ebp - 0x23c], 0x801b
cmp word [ebp - 0x23c], dx
jne 0x4c78c5
lea eax, [ebp - 0x238]
shr ecx, 0x10
push eax
push esi
push 0x801b
push ecx
mov ecx, ebx
call fcn.004ad840
mov dword [edi], eax
mov eax, 1
jmp 0x4c7dcc
mov dword [ebp - 0x23c], 0x8039
cmp word [ebp - 0x23c], dx
jne 0x4c78fc
lea eax, [ebp - 0x238]
shr ecx, 0x10
push eax
push esi
push 0x8039
push ecx
mov ecx, ebx
call fcn.004b0270
mov dword [edi], eax
mov eax, 1
jmp 0x4c7dcc
mov dword [ebp - 0x23c], 0x803a
cmp word [ebp - 0x23c], dx
jne 0x4c79b7
mov esi, dword [sym.imp.USER32.dll_SendMessageA]
push 2
push 0xffffffffffffffff
push 0x100c
push dword [ebx + 0xe8]
call esi
push 2
push 0xffffffffffffffff
push 0x100c
push dword [ebx + 0xec]
mov edi, eax
call esi
lea ecx, [ebp - 0x13c]
mov esi, eax
call fcn.0048ac20
lea eax, [ebp - 0x13c]
mov dword [ebp - 4], 9
push eax
push esi
push edi
mov ecx, ebx
call fcn.0049cf00
cmp dword [ebp - 0x138], 0
je 0x4c7996
call fcn.0049fbd0
mov esi, eax
mov dword [ebp - 0x23c], esi
lea eax, [ebp - 0x13c]
mov byte [ebp - 4], 0xa
push eax
mov ecx, esi
call fcn.004f9c30
mov byte [ebp - 4], 0xb
test esi, esi
je 0x4c7996
call fcn.004992c0
lea ecx, [ebp - 0x13c]
call fcn.0048dfe0
mov eax, dword [ebp - 0x240]
mov dword [eax], 0
mov eax, 1
jmp 0x4c7dcc
mov dword [ebp - 0x240], 0x8073
cmp word [ebp - 0x240], dx
jne 0x4c79ee
lea eax, [ebp - 0x238]
shr ecx, 0x10
push eax
push esi
push 0x8073
push ecx
mov ecx, ebx
call fcn.004b1ca0
mov dword [edi], eax
mov eax, 1
jmp 0x4c7dcc
mov dword [ebp - 0x240], 0x8074
cmp word [ebp - 0x240], dx
jne 0x4c7a25
lea eax, [ebp - 0x238]
shr ecx, 0x10
push eax
push esi
push 0x8074
push ecx
mov ecx, ebx
call fcn.004b1a20
mov dword [edi], eax
mov eax, 1
jmp 0x4c7dcc
mov dword [ebp - 0x240], 0x8075
cmp word [ebp - 0x240], dx
jne 0x4c7d2b
lea eax, [ebp - 0x238]
shr ecx, 0x10
push eax
push esi
push 0x8075
push ecx
mov ecx, ebx
call fcn.004b1f10
mov dword [edi], eax
mov eax, 1
jmp 0x4c7dcc
cmp eax, 0xc65
je 0x4c7ca1
cmp eax, 0xdf5
je 0x4c7ca1
cmp eax, 0xf85
je 0x4c7ca1
cmp eax, 0xc83
jne 0x4c7a9f
mov ecx, ebx
call fcn.004a8d00
mov dword [edi], 0
mov eax, 1
jmp 0x4c7dcc
cmp eax, 0xe13
je 0x4c7a88
cmp eax, 0xfa3
je 0x4c7a88
cmp eax, 0x4e
jne 0x4c7d2b
cmp dword [esi + 4], 0x79
jne 0x4c7b99
cmp dword [esi + 8], 0xfffffffe
jne 0x4c7af2
lea eax, [ebp - 0x238]
mov dword [ebp - 0x238], 1
push eax
push esi
push ecx
mov ecx, ebx
call fcn.004b58c0
cmp dword [ebp - 0x238], 0
mov dword [edi], eax
jne 0x4c75e7
mov ecx, dword [ebp + 0x10]
cmp dword [esi + 4], 0x79
jne 0x4c7b99
cmp dword [esi + 8], 0xfffffffd
jne 0x4c7b2b
lea eax, [ebp - 0x238]
mov dword [ebp - 0x238], 1
push eax
push esi
push ecx
mov ecx, ebx
call fcn.004b58c0
cmp dword [ebp - 0x238], 0
mov dword [edi], eax
jne 0x4c75e7
cmp dword [esi + 4], 0x79
jne 0x4c7b99
cmp dword [esi + 8], 0xfffffffb
jne 0x4c7b62
lea eax, [ebp - 0x238]
mov dword [ebp - 0x238], 1
push eax
push esi
push dword [ebp + 0x10]
mov ecx, ebx
call fcn.004b58c0
cmp dword [ebp - 0x238], 0
mov dword [edi], eax
jne 0x4c75e7
cmp dword [esi + 4], 0x79
jne 0x4c7b99
cmp dword [esi + 8], 0xfffffffa
jne 0x4c7b99
lea eax, [ebp - 0x238]
mov dword [ebp - 0x238], 1
push eax
push esi
push dword [ebp + 0x10]
mov ecx, ebx
call fcn.004b58c0
cmp dword [ebp - 0x238], 0
mov dword [edi], eax
jne 0x4c75e7
mov eax, dword [esi + 4]
cmp eax, 0x79
jne 0x4c7cce
cmp dword [esi + 8], 0xfffffffd
jne 0x4c7bcb
lea eax, [ebp - 0x240]
mov ecx, ebx
push eax
push 0
push 0
push 0
call fcn.004b0ee0
mov dword [edi], eax
mov eax, 1
jmp 0x4c7dcc
cmp eax, 0x79
jne 0x4c7cce
cmp dword [esi + 8], 0xffffff6a
jne 0x4c7c78
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x240], eax
mov dword [ebp - 0x7c], vtable.DataTransferObjects::WarehouseDTO.0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0xf
mov byte [ebp - 0x70], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
lea eax, [ebp - 0x7c]
mov dword [ebp - 4], 0xc
push eax
push dword [esi + 0x10]
mov ecx, ebx
call fcn.0049cb10
cmp dword [ebp - 0x78], 0
je 0x4c7c70
test byte [esi + 0xc], 1
je 0x4c7c70
cmp dword [ebp - 0x240], 0
jne 0x4c7c70
lea eax, [ebp - 0x70]
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
lea ecx, [ebp - 0x7c]
jmp 0x4c77a1
cmp eax, 0x79
jne 0x4c7cce
cmp dword [esi + 8], 0xffffff9b
jne 0x4c7cce
test byte [esi + 0x1c], 8
je 0x4c77a6
test byte [esi + 0x14], 2
je 0x4c77a6
test byte [esi + 0x18], 1
jne 0x4c77a6
push 2
push 0xffffffffffffffff
push 0x100c
push dword [ebx + 0xe8]
call dword [sym.imp.USER32.dll_SendMessageA]
push eax
mov ecx, ebx
call fcn.004a8510
mov dword [edi], 0
mov eax, 1
jmp 0x4c7dcc
cmp eax, 0x76
jne 0x4c7d25
cmp dword [esi + 8], 0xfffffffd
jne 0x4c7cf9
lea eax, [ebp - 0x240]
mov ecx, ebx
push eax
push 0
push 0
push 0
call fcn.004b0270
mov dword [edi], eax
mov eax, 1
jmp 0x4c7dcc
cmp eax, 0x76
jne 0x4c7d25
cmp dword [esi + 8], 0xffffff6a
jne 0x4c7d25
lea eax, [ebp - 0x238]
mov ecx, ebx
push eax
push esi
push dword [ebp + 0x10]
call fcn.004b87a0
mov dword [edi], eax
mov eax, 1
jmp 0x4c7dcc
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
lea edx, [ebx + 0x48]
cmp eax, 5
jne 0x4c7d98
xor eax, eax
test edx, edx
cmove ebx, eax
cmp byte [edx + 0x1c], al
je 0x4c7d6f
push 0xe801
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov ecx, dword [ebp + 0x10]
cmp ecx, 2
jne 0x4c7d60
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4c7d78
test ecx, ecx
jne 0x4c7d6f
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x4c7d78
cmp ecx, 1
je 0x4c77a6
mov eax, esi
lea ecx, [ebx + 0x48]
shr eax, 0x10
cwde
push eax
movsx eax, si
push eax
call fcn.00444be0
mov dword [edi], 0
mov eax, 1
jmp 0x4c7dcc
cmp eax, 0x24
jne 0x4c7dca
cmp dword [edx + 0x14], 0xffffffff
je 0x4c77a6
cmp dword [edx + 0x18], 0xffffffff
je 0x4c77a6
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 0x4c7dcc
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