Function at 0x43e69c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x444
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 0xc], eax
mov eax, dword [ebx]
cmp eax, 3
je 0x43ef93
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xec]
cmp eax, 0xfffffffc
je 0x43ef03
cmp eax, 0xfffffffd
je 0x43e70c
cmp eax, 0xfffffffe
jne 0x43e6f2
mov edx, dword [ebp - 0xc]
movzx ecx, byte [edx + 0x161]
test cl, 4
je 0x43e7e2
jmp 0x43e72f
cmp eax, 0xffffffff
jne 0x43e74b
mov edx, dword [ebp - 0xc]
movzx ecx, byte [edx + 0x161]
test cl, 4
je 0x43e79c
jmp 0x43e73f
mov edx, dword [ebp - 0xc]
movzx ecx, byte [edx + 0x161]
test cl, 4
je 0x43e825
movzx ecx, byte [edx + 0x158]
test cl, 1
jne 0x43e825
movzx ecx, byte [edx + 0x158]
test cl, 1
jne 0x43e7e2
movzx ecx, byte [edx + 0x158]
test cl, 1
jne 0x43e79c
mov edx, dword [ebx + 4]
test edx, edx
je 0x43e9dc
lea ecx, [ebp - 0x12c]
mov eax, dword [ebx + 8]
mov dword [ebp - 8], ecx
cmp eax, 0x100
jle 0x43e76e
mov eax, 0x100
mov dword [ebp - 4], eax
push eax
push edx
push ecx
call fcn.004a3b10
add esp, 0xc
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov byte [eax + edi], 0
mov edx, 1
mov edi, dword [ebp - 8]
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edx
jmp 0x43e869
push str.FOR_PRINT
call fcn.0048a984
mov dword [ebp - 0x24], eax
add esp, 4
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
je 0x43ebcb
mov eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x24]
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x43e7dd
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x43e7c6
add eax, 0xffffffff
jmp 0x43e866
push str.FOR_TYPE
call fcn.0048a984
mov dword [ebp - 0x24], eax
add esp, 4
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
je 0x43ebfa
mov eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x24]
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x43e823
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x43e80c
add eax, 0xffffffff
jmp 0x43e866
push str.FOR_ACCEPT
call fcn.0048a984
mov dword [ebp - 0x24], eax
add esp, 4
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
je 0x43eed4
mov eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x24]
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x43e866
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x43e84f
add eax, 0xffffffff
mov dword [ebp - 4], eax
mov edx, dword [ebp - 0x24]
movsx ecx, byte [edx]
cmp ecx, 0x20
jne 0x43e891
test eax, eax
jle 0x43e8af
add edx, 1
mov dword [ebp - 8], edx
mov edi, edx
add eax, 0xffffffff
mov dword [ebp - 4], eax
movsx ecx, byte [edx]
cmp ecx, 0x20
je 0x43e874
mov dword [ebp - 0x24], edx
test eax, eax
jle 0x43e8af
mov ecx, edx
movsx edx, byte [eax + ecx - 1]
cmp edx, 0x20
je 0x43e8a5
test edx, edx
jne 0x43e8e4
add eax, 0xffffffff
mov dword [ebp - 4], eax
test eax, eax
jg 0x43e897
jne 0x43e8e4
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0x161]
test dl, 4
je 0x43e8e4
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 8]
lea ecx, [ebp - 4]
call fcn.0043efdc
test eax, eax
jne 0x43e8d7
mov edi, dword [ebp - 8]
jmp 0x43e8e4
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x43e8ef
xor ecx, ecx
jmp 0x43e96c
mov eax, dword [ebp - 4]
mov byte [eax + edi], 0
mov eax, dword [ebp - 0xc]
push dword [ebp - 8]
push eax
call fcn.0042028c
add esp, 8
cmp eax, 0xffffffff
je 0x43ec40
mov edx, dword [0x4caa54]
test edx, edx
jne 0x43e922
cmp eax, 0xfffffffa
jne 0x43e922
mov eax, 1
cmp eax, 1
je 0x43e953
test eax, eax
jne 0x43e935
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp 0x43e95b
cmp eax, 2
jne 0x43e944
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
jmp 0x43e95b
mov edi, dword [ebp - 8]
xor eax, eax
mov dword [ebp - 0x20], eax
mov ecx, 1
jmp 0x43e96c
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ecx, dword [ebp - 0xc]
mov edi, dword [ebp - 8]
mov dword [ecx + 0xd4], eax
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov esi, dword [ebp - 0x10]
mov dl, byte [edi]
add edi, 1
mov byte [esi], dl
add esi, 1
test dl, dl
jne 0x43e96f
mov eax, dword [0x4caa54]
test eax, eax
je 0x43e9a1
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x43e9b6
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0xd4]
cmp edx, 0xffffffff
je 0x43ec29
jmp 0x43e9b6
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x43e9b6
mov eax, dword [ebp - 0xc]
mov edx, dword [eax + 0xd4]
cmp edx, 0xffffffff
je 0x43e9ba
test ecx, ecx
je 0x43e9c5
mov eax, dword [ebp + 0x14]
mov dword [eax], 1
jmp 0x43e9cd
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 0x20]
mov dword [edx], eax
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
xor eax, eax
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x12c]
push eax
push str.FORT_d
push edx
call fcn.0048ad06
lea eax, [ebp - 0x12c]
push eax
call fcn.0048a984
mov dword [ebp - 0x24], eax
add esp, 0x10
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
je 0x43ea34
mov ecx, eax
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x43ea24
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x43ea0d
add eax, 0xffffffff
mov dword [ebp - 4], eax
mov edx, 1
mov dword [ebp - 0x20], edx
jmp 0x43e869
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0xec]
lea edx, [eax + 4]
cmp edx, 0xa
ja case.0x43ea4c.0
mov eax, dword [eax*4 + 0x4ba40c]
jmp eax
mov eax, 1
mov dword [ebp - 0x20], eax
jmp 0x43eafe
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], str.CONOUT_
mov dword [edx + 0xd4], eax
mov eax, str.CONOUT_
mov dword [ebp - 0x24], eax
mov edi, str.CONOUT_
jmp 0x43eace
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], str.CONOUT_
mov dword [edx + 0xd4], eax
mov eax, str.CONOUT_
mov dword [ebp - 0x24], eax
mov edi, str.CONOUT_
jmp 0x43eace
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edx, dword [ebp - 0xc]
mov dword [ebp - 8], str.CONIN_
mov dword [edx + 0xd4], eax
mov eax, str.CONIN_
mov dword [ebp - 0x24], eax
mov edi, str.CONIN_
test eax, eax
je 0x43ebc1
mov ecx, eax
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x43eaf1
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x43eada
add eax, 0xffffffff
mov dword [ebp - 4], eax
xor edx, edx
mov dword [ebp - 0x20], edx
jmp 0x43e869
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0x161]
test dl, 4
jne 0x43ebac
movzx edx, byte [eax + 0x159]
test dl, 0x20
je 0x43eb59
mov edi, dword [eax + 0x60]
mov dword [ebp - 0x24], edi
mov dword [ebp - 8], edi
mov ecx, edi
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x43eb41
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x43eb2a
add eax, 0xffffffff
mov edx, dword [ebx]
mov dword [ebp - 4], eax
test edx, edx
je 0x43e869
mov dword [ebx], 0
jmp 0x43e869
push dword [eax + 0xec]
lea edx, [ebp - 0x12c]
push str.fort._d
push edx
call fcn.0048ad06
add esp, 0xc
lea ecx, [ebp - 0x12c]
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x43eb92
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x43eb7b
add eax, 0xffffffff
lea edx, [ebp - 0x12c]
mov dword [ebp - 0x24], edx
mov dword [ebp - 4], eax
lea edi, [ebp - 0x12c]
mov dword [ebp - 8], edx
jmp 0x43e869
lea esi, [ebp - 0x12c]
mov dword [ebp - 8], esi
xor eax, eax
mov byte [esi], al
mov dword [ebp - 4], eax
jmp 0x43e8c0
xor eax, eax
mov dword [ebp - 0x20], eax
jmp 0x43eafe
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, dword [ebp - 0xc]
mov dword [ebp - 8], str.CONOUT_
mov dword [edi + 0xd4], eax
mov eax, str.CONOUT_
mov dword [ebp - 0x24], eax
mov edi, str.CONOUT_
xor edx, edx
mov dword [ebp - 0x20], edx
jmp 0x43e7c1
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, dword [ebp - 0xc]
mov dword [ebp - 8], str.CONOUT_
mov dword [edi + 0xd4], eax
mov eax, str.CONOUT_
mov dword [ebp - 0x24], eax
mov edi, str.CONOUT_
xor edx, edx
mov dword [ebp - 0x20], edx
jmp 0x43e807
test ecx, ecx
jne 0x43e9ba
mov dword [eax + 0xd4], 0
jmp 0x43e9c5
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0x161]
test dl, 8
jne 0x43ec5c
mov edx, dword [ebx + 0xc]
test edx, edx
je 0x43ed81
jmp 0x43ec67
mov edx, dword [ebx + 0xc]
test edx, edx
je 0x43eea6
mov esi, dword [ebx + 0x10]
lea eax, [esi + 1]
cmp eax, 0x100
jle 0x43ec86
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
mov eax, 0x2b
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x230]
push esi
push edx
push eax
call fcn.004a3b10
add esp, 0xc
mov byte [ebp + esi - 0x230], 0
lea eax, [ebp - 0x230]
mov dword [ebp - 0x24], eax
movsx edx, byte [eax]
cmp edx, 0x20
jne 0x43ecc9
test esi, esi
jle 0x43ee9e
add eax, 1
movsx edx, byte [eax]
add esi, 0xffffffff
cmp edx, 0x20
je 0x43ecb0
mov dword [ebp - 0x24], eax
test esi, esi
jle 0x43eceb
mov edx, eax
movsx eax, byte [edx + esi - 1]
cmp eax, 0x20
je 0x43ece1
test eax, eax
jne 0x43edbd
add esi, 0xffffffff
test esi, esi
jg 0x43eccf
mov dword [ebp - 0x24], edx
xor eax, eax
mov dword [ebp - 0x438], eax
mov eax, dword [ebx]
cmp eax, 3
je 0x43ede1
mov eax, dword [ebp - 0x438]
add eax, dword [ebp - 4]
add eax, esi
cmp eax, 0x100
jle 0x43ed22
mov ebx, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
mov eax, 0x2b
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x24]
mov edx, dword [ebp - 0x10]
push esi
push eax
push edx
call fcn.004a3b10
add esp, 0xc
mov eax, dword [ebp - 0x438]
test eax, eax
je 0x43ed4d
mov edi, dword [ebp - 0x10]
lea ecx, [esi + edi]
mov eax, 0x4ba568
movzx edx, byte [eax]
mov byte [ecx], dl
push dword [ebp - 4]
push dword [ebp - 8]
mov eax, dword [ebp - 0x438]
mov edi, dword [ebp - 0x10]
lea edx, [edi + eax]
add edx, esi
push edx
call fcn.004a3b10
add esp, 0xc
add esi, dword [ebp - 0x438]
mov eax, dword [ebp - 4]
xor ecx, ecx
add eax, dword [ebp - 0x10]
mov byte [esi + eax], 0
jmp 0x43e97d
lea edx, [ebp - 0x230]
lea eax, [ebp - 0x28]
push eax
push edx
push 0x101
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
je 0x43edb1
cmp eax, 0x101
jae 0x43edb1
lea edx, [ebp - 0x230]
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x24], eax
xor esi, esi
jmp 0x43eceb
mov dword [ebp - 0x24], edx
test esi, esi
jle 0x43eceb
mov edi, edx
movsx eax, byte [edi + esi]
xor edx, edx
cmp eax, 0x5c
setne dl
mov dword [ebp - 0x438], edx
jmp 0x43ecf3
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0x159]
test dl, 0x20
jne 0x43ecfe
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x43ee48
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 0x334]
push eax
push 0
push 0x4ba56c
push edx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0x161]
test dl, 8
je 0x43ee2a
lea edi, [ebp - 0x332]
jmp 0x43ee30
lea edi, [ebp - 0x334]
mov esi, dword [ebp - 0x10]
mov dl, byte [edi]
add edi, 1
mov byte [esi], dl
add esi, 1
test dl, dl
jne 0x43ee33
xor ecx, ecx
jmp 0x43e97d
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0x161]
test dl, 8
je 0x43ee70
mov byte [ebp - 0x438], 0x2e
lea eax, [ebp - 0x438]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x437], 0
jmp 0x43edfb
lea eax, [ebp - 0x438]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x43ee94
lea eax, [ebp - 0x438]
mov dword [ebp - 0x24], eax
jmp 0x43edfb
xor eax, eax
mov dword [ebp - 0x24], eax
jmp 0x43edfb
mov dword [ebp - 0x24], eax
jmp 0x43eceb
mov eax, dword [ebx]
cmp eax, 3
je 0x43eeb7
mov edi, dword [ebp - 8]
xor ecx, ecx
jmp 0x43e96c
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0x159]
test dl, 0x20
je 0x43ed81
mov edi, dword [ebp - 8]
xor ecx, ecx
jmp 0x43e96c
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, dword [ebp - 0xc]
mov dword [ebp - 8], str.CONIN_
mov dword [edi + 0xd4], eax
mov eax, str.CONIN_
mov dword [ebp - 0x24], eax
mov edi, str.CONIN_
xor edx, edx
mov dword [ebp - 0x20], edx
jmp 0x43e84a
mov edx, dword [ebp - 0xc]
movzx ecx, byte [edx + 0x161]
test cl, 4
je 0x43ef25
movzx esi, byte [edx + 0x158]
test esi, 1
je 0x43e716
push str.FOR_READ
call fcn.0048a984
mov dword [ebp - 0x24], eax
add esp, 4
mov edi, eax
mov dword [ebp - 8], edi
test edi, edi
je 0x43ef67
mov eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x24]
xor eax, eax
movzx edx, byte [ecx + eax]
test edx, edx
je 0x43ef62
movzx edx, byte [ecx + eax + 1]
add eax, 2
test edx, edx
jne 0x43ef4b
add eax, 0xffffffff
jmp 0x43e866
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov edi, dword [ebp - 0xc]
mov dword [ebp - 8], str.CONIN_
mov dword [edi + 0xd4], eax
mov eax, str.CONIN_
mov dword [ebp - 0x24], eax
mov edi, str.CONIN_
xor edx, edx
mov dword [ebp - 0x20], edx
jmp 0x43ef46
mov eax, dword [ebp - 0xc]
movzx edx, byte [eax + 0x159]
test dl, 0x20
jne 0x43e6c1
push str.SCRATCH
lea eax, [ebp - 0x12c]
push eax
call fcn.0048ad06
add esp, 8
mov dword [ebp - 4], 7
lea edi, [ebp - 0x12c]
mov eax, 7
mov edx, 1
mov dword [ebp - 8], edi
mov dword [ebp - 0x20], edx
jmp 0x43e8f2
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
xor eax, eax
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x20]
push 0
push esi
call fcn.00438080
add esp, 8
test eax, eax
jne 0x43face
movsx eax, byte [esi + 0x144]
lea edx, [eax - 1]
cmp edx, 7
ja case.default.0x43f5cf
mov edx, dword [eax*4 + 0x4ba424]
jmp edx
mov edx, dword [esi + 0x40]
test edx, edx
je 0x43f5dd
mov dword [esi + 0x3c], edx
jmp 0x43f5e3
mov edx, dword [esi + 0x38]
mov dword [esi + 0x3c], edx
mov eax, dword [esi + 0xe4]
lea ecx, [edx + eax - 1]
mov dword [esi + 0x44], ecx
movzx ecx, byte [esi + 0x158]
jmp 0x43f73f
mov edx, dword [esi + 0x18]
test edx, edx
je 0x43f94c
movzx eax, byte [edx + 0x3c]
test al, 2
je 0x43f63e
mov eax, 0x2c
mov dword [edx + 0x30], eax
mov edx, dword [esi + 0x18]
mov dword [edx + 0x34], eax
mov eax, dword [esi + 0x64]
test eax, eax
je 0x43f62c
xor edx, edx
mov dword [eax + 4], edx
mov dword [esi + 0x64], edx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov eax, 0x2c
mov esp, ebp
pop ebp
ret
movzx eax, byte [esi + 0x15c]
mov edi, eax
and edi, 1
test al, 2
mov edx, 2
jne 0x43f658
mov edx, 0
test al, 4
mov ecx, 4
mov ebx, 0x2c
push ebx
jne 0x43f66c
mov ecx, 0
or edi, edx
or edi, ecx
push ebx
push edi
push 0xffffffffffffffff
push esi
call fcn.00435ec8
add esp, 0x14
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x40]
test edx, edx
je 0x43f96b
add edx, 4
mov dword [esi + 0x3c], edx
mov eax, dword [esi + 0xe4]
lea ecx, [edx + eax - 8]
mov dword [esi + 0x44], ecx
movzx ecx, byte [esi + 0x158]
jmp 0x43f73f
mov edx, dword [esi + 0x40]
test edx, edx
je 0x43f6c0
mov dword [esi + 0x3c], edx
jmp 0x43f6c6
mov edx, dword [esi + 0x38]
mov dword [esi + 0x3c], edx
mov ecx, dword [esi + 0xe4]
mov dword [ebp - 0x1c], ecx
lea edi, [edx + ecx]
movzx ecx, byte [esi + 0x158]
test cl, 4
mov dword [ebp - 0x6c], edi
je 0x43f718
movzx edi, byte [esi + 0x15a]
test edi, 0x40
je 0x43f704
movzx edi, byte [esi + 0x15b]
test edi, 8
je 0x43f704
cmp eax, 1
je 0x43f70c
mov eax, dword [ebp - 0x6c]
mov dword [esi + 0x44], eax
jmp 0x43f73f
mov eax, dword [ebp - 0x1c]
lea edi, [edx + eax - 2]
mov dword [esi + 0x44], edi
jmp 0x43f73f
mov eax, edi
mov dword [esi + 0x44], eax
jmp 0x43f73f
push 0x157f
push str.for_nt_open_proc.c
push 2
push 8
call fcn.00434a44
add esp, 0x10
movzx ecx, byte [esi + 0x158]
mov edx, dword [esi + 0x3c]
test cl, 4
je 0x43f766
movzx eax, byte [esi + 0x15a]
test al, 0x40
je 0x43f766
movzx eax, byte [esi + 0x15b]
test al, 8
je 0x43f766
movsx eax, byte [esi + 0x144]
cmp eax, 1
je 0x43f7b3
movsx eax, byte [esi + 0x146]
cmp eax, 2
jne 0x43f78e
movsx eax, byte [esi + 0x144]
cmp eax, 7
je 0x43f7b3
cmp eax, 6
je 0x43f7b3
cmp eax, 8
je 0x43f7b3
add dword [esi + 0x44], 0xffffffff
jmp 0x43f7b3
cmp eax, 1
jne 0x43f7b3
movsx eax, byte [esi + 0x144]
cmp eax, 7
je 0x43f7ad
cmp eax, 6
je 0x43f7ad
cmp eax, 8
je 0x43f7ad
add dword [esi + 0x44], 0xffffffff
add edx, 5
mov dword [esi + 0x3c], edx
mov eax, dword [ebp - 4]
mov dword [esi + 0x4c], 0
mov dword [esi + 0x48], edx
mov ecx, dword [ebp - 0x20]
lea edx, [ebp - 0xec]
push eax
push edx
push dword [ecx + 0x3c]
call fcn.004a3b10
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
add dword [edx + 0x3c], eax
push dword [ebp - 0x20]
call fcn.00438180
add esp, 0x10
mov esi, eax
test esi, esi
jne 0x43fa5e
xor eax, eax
push eax
push eax
push dword [ebp - 0x24]
call fcn.0043ccbc
add esp, 0xc
mov esi, eax
test esi, esi
jne 0x43f9ee
mov esi, dword [ebp - 0x24]
mov eax, dword [esi + 0x3c]
mov esi, dword [esi + 0x44]
sub esi, eax
push esi
push eax
push dword [ebx]
call fcn.004a3b10
add esp, 0xc
mov edx, dword [ebp - 0x28]
mov eax, dword [ebx]
mov byte [eax + esi], 0
mov dword [edx], esi
mov eax, dword [ebx]
movsx ecx, byte [eax]
cmp ecx, 0x20
jne 0x43f857
test esi, esi
jle 0x43f9e9
add eax, 1
mov dword [ebx], eax
mov esi, dword [edx]
add esi, 0xffffffff
mov dword [edx], esi
mov eax, dword [ebx]
movsx ecx, byte [eax]
cmp ecx, 0x20
je 0x43f836
mov dword [ebp - 0x28], edx
test esi, esi
jg 0x43f862
jmp 0x43f979
mov eax, dword [ebx]
movsx eax, byte [eax + esi - 1]
cmp eax, 0x20
je 0x43f874
test eax, eax
jne 0x43f97f
add esi, 0xffffffff
mov dword [edx], esi
test esi, esi
jg 0x43f860
jmp 0x43f979
push esi
mov eax, 0x2c
push eax
push eax
push 1
call fcn.004342fc
add esp, 0x10
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x38]
add edx, 4
mov dword [esi + 0x3c], edx
jmp 0x43f69b
je 0x43f59f
mov edi, dword [ebp - 0xf0]
push 0
push dword [ebp - 0x20]
call fcn.0042a47c
push 0
push dword [ebp - 0x24]
call fcn.0042a47c
push dword [ebp - 0x20]
call fcn.004316dc
push dword [ebp - 0x24]
call fcn.004316dc
add esp, 0x18
mov eax, dword [edi + 0xec]
cmp eax, 6
je 0x43f9d5
mov eax, dword [ebp - 0x18]
push dword [eax + 0xec]
call fcn.0043247c
pop ecx
mov eax, dword [edi + 0xec]
cmp eax, 5
je 0x43f078
mov eax, dword [ebp - 0x14]
push dword [eax + 0xec]
call fcn.0043247c
pop ecx
jmp 0x43f078
mov dword [ebp - 0x28], edx
jmp 0x43f979
mov edi, dword [ebp - 0xf0]
push 0
push dword [ebp - 0x20]
call fcn.0042a47c
push 0
push dword [ebp - 0x24]
call fcn.0042a47c
push dword [ebp - 0x20]
call fcn.004316dc
push dword [ebp - 0x24]
call fcn.004316dc
add esp, 0x18
mov eax, dword [edi + 0xec]
cmp eax, 6
je 0x43fa40
mov eax, dword [ebp - 0x18]
push dword [eax + 0xec]
call fcn.0043247c
pop ecx
mov eax, dword [edi + 0xec]
cmp eax, 5
je 0x43fa4f
mov eax, dword [ebp - 0x14]
push dword [eax + 0xec]
call fcn.0043247c
pop ecx
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 0x10]
mov eax, esi
mov esi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0xf0]
push 0
push dword [ebp - 0x20]
call fcn.0042a47c
push 0
push dword [ebp - 0x24]
call fcn.0042a47c
push dword [ebp - 0x20]
call fcn.004316dc
push dword [ebp - 0x24]
call fcn.004316dc
add esp, 0x18
mov eax, dword [edi + 0xec]
cmp eax, 6
je 0x43fab0
mov eax, dword [ebp - 0x18]
push dword [eax + 0xec]
call fcn.0043247c
pop ecx
mov eax, dword [edi + 0xec]
cmp eax, 5
je 0x43fabf
mov eax, dword [ebp - 0x14]
push dword [eax + 0xec]
call fcn.0043247c
pop ecx
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 0x10]
mov eax, esi
mov esi, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
mov edx, dword [esi + 0x18]
test edx, edx
je 0x43fb5c
movzx eax, byte [edx + 0x3c]
test al, 2
je 0x43fb10
mov eax, 0x26
mov dword [edx + 0x30], eax
mov edx, dword [esi + 0x18]
mov dword [edx + 0x34], eax
mov eax, dword [esi + 0x64]
test eax, eax
je 0x43fafe
xor edx, edx
mov dword [eax + 4], edx
mov dword [esi + 0x64], edx
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov eax, 0x26
mov esp, ebp
pop ebp
ret
movzx eax, byte [esi + 0x15c]
mov edi, eax
and edi, 1
test al, 2
mov edx, 2
jne 0x43fb2a
mov edx, 0
test al, 4
mov ecx, 4
mov ebx, 0x26
push ebx
jne 0x43fb3e
mov ecx, 0
or edi, edx
or edi, ecx
push ebx
push edi
push 0xffffffffffffffff
push esi
call fcn.00435ec8
add esp, 0x14
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
push esi
mov eax, 0x26
push eax
push eax
push 1
call fcn.004342fc
add esp, 0x10
mov ebx, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret