Function at 0x404430
Capabilities:
Set current directory

Disassembly:
sub esp, 0x158
mov eax, ecx
mov dword [esp + 8], edx
mov dword [esp + 0x14], eax
push ebx
push ebp
mov eax, dword [eax + 8]
push esi
push edi
lea esi, [eax + eax*2]
mov eax, dword [0x4ddc90]
mov ebp, dword [eax + esi*4]
lea ebx, [eax + esi*4]
mov al, byte [ebx + 0xa]
mov ecx, ebp
mov dword [esp + 0x1c], ebx
mov byte [esp + 0x17], al
mov dword [esp + 0x20], ebp
call fcn.004774b0
sub eax, 0
je 0x404475
sub eax, 1
jne 0x404480
mov eax, dword [ebp + 8]
test eax, eax
je 0x404480
mov cl, byte [eax]
jmp 0x404482
xor cl, cl
mov edx, dword [0x4dc40c]
mov eax, dword [0x4d98d4]
mov byte [esp + 0x16], cl
cmp edx, eax
jl 0x4044ae
add eax, 2
cmp edx, eax
jge 0x4047f4
cmp cl, 0xe0
je 0x4044ae
cmp cl, 0xdb
jne 0x4047f4
mov al, byte [ebx + 8]
cmp al, byte [ebx + 9]
jae 0x4047f4
mov eax, dword [0x4d98d8]
cmp dword [eax + 0x2c], 0
jg 0x4047f4
mov ecx, dword [0x4dc408]
push 0
push 1
call fcn.004014c0
push 0x7f
push eax
lea eax, [esp + 0x70]
push eax
call fcn.004a1eb4
mov ebx, dword [0x4d98d8]
xor eax, eax
inc dword [0x4dc40c]
add ebx, 0x108
add esp, 0xc
mov word [esp + 0x166], ax
mov ecx, 0x42
mov dword [0x4d98d8], ebx
mov esi, 0x4dc2f0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
push eax
mov ecx, 0x4ddca0
mov dword [ebx + 0x2c], eax
call fcn.004174d0
cmp dword [0x4dc420], 0
xorps xmm0, xmm0
movlpd qword [0x4de788], xmm0
je 0x404556
mov eax, dword [0x4db004]
mov ecx, 0x4b70dc
test eax, eax
je 0x40454f
mov eax, dword [eax]
test eax, eax
cmovne ecx, eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov al, byte [ebx + 0xee]
test al, al
jne 0x404584
cmp byte [esp + 0x16], 0x65
sete al
mov byte [ebx + 0xee], al
jne 0x404584
mov dword [ebx], 0xffffffff
mov dword [ebx + 4], 0xffffffff
mov dword [ebx + 0x24], 0xffffffff
cmp dword [0x4de794], 0
je 0x404596
cmp dword [0x4de790], 0
jne 0x40459a
test al, al
je 0x4045d1
mov byte [ebx + 0xec], 0
test al, al
jne 0x4045d1
cmp dword [0x4de794], 0
jge 0x4045ba
mov dword [ebx + 0xe0], 0xffffffff
jmp 0x4045d1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebx + 0xdc], eax
mov eax, dword [0x4de794]
mov dword [ebx + 0xe0], eax
mov ebx, dword [esp + 0x18]
xor edi, edi
mov ebp, dword [sym.imp.USER32.dll_GetParent]
test ebx, ebx
jne 0x4045e5
xor esi, esi
jmp 0x404619
push 0xfffffffffffffff0
push ebx
mov esi, ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindowLongW]
call ebx
test eax, 0x40000000
je 0x404615
nop dword [eax]
push esi
call ebp
test eax, eax
je 0x404615
push 0xfffffffffffffff0
push eax
mov esi, eax
call ebx
test eax, 0x40000000
jne 0x404600
mov ebx, dword [esp + 0x18]
mov ecx, dword [0x4d98d8]
mov dword [ecx + 0xc4], esi
test esi, esi
je 0x40469a
mov ecx, ebx
call fcn.004619e0
mov edi, eax
test edi, edi
je 0x404694
mov ecx, dword [0x4d98d8]
add dword [edi + 0x20], 2
push dword [esp + 0x18]
mov dword [ecx + 0x44], edi
mov dword [ecx + 0x48], edi
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea esi, [eax - 3]
cmp esi, dword [edi + 0x10]
jb 0x40466e
push dword [esp + 0x18]
call ebp
mov ebx, eax
test ebx, ebx
je 0x40466e
push ebx
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
lea esi, [eax - 3]
mov edx, dword [edi + 0x10]
cmp esi, edx
jae 0x404680
mov eax, dword [edi + 0x18]
lea ecx, [esi + esi*4]
cmp dword [eax + ecx*4], ebx
je 0x404685
mov esi, 0x2af8
cmp esi, edx
jae 0x404694
mov ecx, dword [0x4d98d8]
mov dword [ecx + 0x50], esi
jmp 0x40469a
mov ecx, dword [0x4d98d8]
mov edx, dword [esp + 0x178]
test edx, edx
je 0x4046b7
mov eax, dword [edx + 0x14]
mov dword [ecx + 0x3c], eax
mov eax, dword [edx + 0x18]
mov dword [ecx + 0x40], eax
mov eax, dword [edx + 0x10]
mov dword [ecx + 0x38], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebp, dword [esp + 0x20]
mov edx, ebp
mov esi, dword [esp + 0x16c]
mov ecx, ebp
mov dword [0x4de79c], eax
mov dword [0x4de798], eax
mov eax, dword [esp + 0x1c]
push 0
inc byte [eax + 8]
mov eax, dword [esp + 0x174]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x178]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x5c], eax
lea eax, [esp + 0x20]
push eax
push 4
lea eax, [esp + 0x34]
mov dword [esp + 0x3c], 1
push eax
push 0x4b7154
mov dword [esp + 0x40], 0
mov dword [esp + 0x54], 1
mov dword [esp + 0x50], 0
mov dword [esp + 0x64], 1
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], 0
mov dword [esp + 0x74], 1
mov dword [esp + 0x70], 0
call fcn.00473ca0
add esp, 0x14
cmp eax, 7
sete bl
jne 0x40476f
mov ecx, dword [esp + 0x17c]
mov eax, dword [esp + 0x1c]
mov dword [ecx], eax
test edi, edi
je 0x40479d
add dword [edi + 0x20], 0xffffffff
jne 0x404791
push dword [edi]
call fcn.0049b8d4
add esp, 4
push 0xc4
push edi
call fcn.00495a61
add esp, 8
mov eax, dword [0x4d98d8]
mov dword [eax + 0x44], 0
lea ecx, [esp + 0x68]
call fcn.00404810
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 8]
test eax, eax
js 0x4047e7
lea ecx, [eax + eax*2]
mov eax, dword [0x4ddc90]
cmp dword [eax + ecx*4 + 4], esi
jne 0x4047e7
cmp byte [esp + 0x17], 0
je 0x4047cd
movzx edx, byte [eax + ecx*4 + 0xa]
jmp 0x4047d5
xor edx, edx
cmp dword [eax + ecx*4], ebp
sete dl
test edx, edx
je 0x4047e7
mov dl, byte [eax + ecx*4 + 8]
test dl, dl
je 0x4047e7
dec dl
mov byte [eax + ecx*4 + 8], dl
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x158
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x158
ret