Function at 0x40d430
Capabilities:
Hide graphical window

Disassembly:
sub esp, 8
test byte [0x4dfd54], 1
push ebx
push ebp
push esi
jne 0x40d46f
or dword [0x4dfd54], 1
cmp dword [0x4dd53c], 0
jne 0x40d462
cmp dword [0x4dd540], 0
jne 0x40d462
mov dword [0x4dd53c], 0x4ddee0
push 0x4a5f20
call fcn.0047f635
add esp, 4
mov eax, dword [0x4dd53c]
cmp dword [eax + 0x434], 4
mov dword [0x4dd538], 1
mov dword [esp + 0x10], eax
lea ebp, [edi + 0x1fac]
jne 0x40d4be
mov dword [edi + 0x1fc0], 0xbaab9e
mov eax, dword [ebp + 4]
push 0
push eax
mov dword [ebp + 8], 3
call dword [0x4a7378]
mov ecx, dword [ebp + 4]
push 0
push 0
push ecx
call dword [0x4a7434]
jmp 0x40d4d4
mov eax, 1
mov esi, ebp
mov dword [edi + 0x1fc0], 0x98540f
call fcn.0042cb00
mov edx, dword [edi + 0x1f4c]
mov ebx, dword [0x4a73ec]
push 0
push edx
call ebx
lea eax, [edi + 0x25c]
test eax, eax
je 0x40d4f7
lea eax, [edi + 0x260]
jmp 0x40d4f9
xor eax, eax
cmp dword [edi + 0x1d2c], eax
jne 0x40d5a6
mov ecx, dword [edi + 0x1e44]
push 0
push ecx
call ebx
mov edx, dword [edi + 0x1ef4]
push 0
push edx
call ebx
mov eax, dword [edi + 0x1fb0]
push 1
push eax
call ebx
mov ecx, dword [edi + 0x1d94]
push 1
push ecx
call ebx
mov edx, dword [edi + 0x1d3c]
push 1
push edx
call ebx
mov eax, dword [edi + 0x1dec]
push 1
push eax
call ebx
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0xc18]
mov esi, ebp
call fcn.0042cb00
mov edx, dword [esp + 0x10]
cmp dword [edx + 0xc1c], 0
push 0xa8
je 0x40d57b
push 0xa5
push 0xa5
push 0xa5
jmp 0x40d58a
push 0xa4
push 0xa4
push 0xa4
call fcn.0042bf60
mov esi, 0x4aa6a0
mov eax, ebp
call fcn.0042cac0
mov eax, dword [edi + 0x1e9c]
push 1
push eax
call ebx
lea ecx, [edi + 0x2f0]
test ecx, ecx
je 0x40d5b8
lea eax, [edi + 0x2f4]
jmp 0x40d5ba
xor eax, eax
cmp dword [edi + 0x1d2c], eax
jne 0x40d60f
mov edx, dword [edi + 0x1e44]
push 0
push edx
call ebx
mov eax, dword [edi + 0x1ef4]
push 0
push eax
call ebx
mov ecx, dword [edi + 0x1fb0]
push 0
push ecx
call ebx
mov edx, dword [edi + 0x1d94]
push 0
push edx
call ebx
mov eax, dword [edi + 0x1d3c]
push 0
push eax
call ebx
mov ecx, dword [edi + 0x1dec]
push 0
push ecx
call ebx
mov edx, dword [edi + 0x1e9c]
push 0
push edx
call ebx
lea eax, [edi + 0x1bf0]
test eax, eax
je 0x40d621
lea eax, [edi + 0x1bf4]
jmp 0x40d623
xor eax, eax
cmp dword [edi + 0x1d2c], eax
jne 0x40d6ef
mov ecx, dword [edi + 0x1e44]
push 0
push ecx
call ebx
mov edx, dword [edi + 0x1ef4]
push 0
push edx
call ebx
mov eax, dword [edi + 0x1fb0]
push 1
push eax
call ebx
mov ecx, dword [edi + 0x1d94]
push 1
push ecx
call ebx
mov edx, dword [edi + 0x1d3c]
push 1
push edx
call ebx
mov eax, dword [edi + 0x1dec]
push 1
push eax
call ebx
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 0xc20]
mov esi, ebp
call fcn.0042cb00
mov edx, dword [esp + 0x10]
cmp dword [edx + 0xc24], 0
push 0xa8
je 0x40d6c4
push 0xa5
push 0xa5
push 0xa5
call fcn.0042bf60
mov esi, 0x4aa6a0
mov eax, ebp
call fcn.0042cac0
mov dword [ebp + 0x28], 0x15
mov dword [ebp + 0x20], 0x24
jmp 0x40d6e4
push 0xa4
push 0xa4
push 0xa4
call fcn.0042bf60
mov esi, 0x4aa6a0
mov eax, ebp
call fcn.0042cac0
mov eax, dword [edi + 0x1e9c]
push 1
push eax
call ebx
lea ecx, [edi + 0x1c68]
test ecx, ecx
je 0x40d701
lea eax, [edi + 0x1c6c]
jmp 0x40d703
xor eax, eax
cmp dword [edi + 0x1d2c], eax
jne 0x40d763
mov edx, dword [edi + 0x1fb0]
push 0
push edx
call ebx
mov eax, dword [edi + 0x1f4c]
push 0
push eax
call ebx
mov ecx, dword [edi + 0x1d94]
push 0
push ecx
call ebx
mov edx, dword [edi + 0x1d3c]
push 0
push edx
call ebx
mov eax, dword [edi + 0x1dec]
push 0
push eax
call ebx
mov ecx, dword [edi + 0x1e9c]
push 0
push ecx
call ebx
mov edx, dword [edi + 0x1ef4]
push 1
push edx
call ebx
mov eax, dword [edi + 0x1e44]
push 1
push eax
call ebx
mov ecx, dword [edi + 0x1fb0]
push 0
push 0
push ecx
call dword [0x4a7434]
pop esi
pop ebp
pop ebx
add esp, 8
ret