Function at 0x456a38
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff72c
push esi
push edi
xor eax, eax
mov dword [ebp - 0x20], eax
xor edx, edx
mov dword [ebp - 0x24], edx
mov ecx, dword [0x760e38]
test ecx, ecx
jne 0x456a77
mov eax, dword [0x6fb2cc]
test eax, eax
jne 0x456a6a
mov edx, dword [0x6fb2d0]
test edx, edx
je 0x456a73
mov ecx, dword [0x6fb2d4]
dec ecx
je 0x456a77
xor eax, eax
jmp 0x456a7c
mov eax, 1
mov dword [ebp - 0x28], eax
mov edx, dword [ebp - 0x28]
test edx, edx
je 0x456a99
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00497528
add esp, 8
jmp 0x4579f9
mov ecx, dword [0x6fb2c0]
test ecx, ecx
je 0x456ab6
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00520448
add esp, 8
jmp 0x4579f9
mov eax, dword [0x75fabc]
cmp eax, 0xfffffffe
jne 0x456ac7
xor eax, eax
jmp 0x4579f9
lea edx, [ebp - 0x60]
push edx
push dword [ebp + 0xc]
call fcn.00457e84
add esp, 8
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
inc ecx
jne 0x456b17
mov eax, dword [0x6eb990]
test eax, eax
je 0x456b10
push dword [ebp + 0xc]
push str.File_error:__s
lea edx, [ebp - 0x494]
push edx
call fcn.006712b0
add esp, 0xc
push 2
lea ecx, [ebp - 0x494]
push ecx
call fcn.004f9088
add esp, 8
xor eax, eax
jmp 0x4579f9
push dword [ebp + 0x10]
call fcn.0066ce38
pop ecx
cmp eax, 0x104
jb 0x456b60
mov edx, dword [0x6eb990]
test edx, edx
je 0x456b59
push dword [ebp + 0xc]
push str.Filename_too_long:__s
lea ecx, [ebp - 0x8a4]
push ecx
call fcn.006712b0
add esp, 0xc
push 2
lea eax, [ebp - 0x8a4]
push eax
call fcn.004f9088
add esp, 8
xor eax, eax
jmp 0x4579f9
test byte [ebp - 0x5b], 0x40
jne 0x456d1e
xor edx, edx
mov dword [ebp - 0x2c], edx
mov ecx, dword [ebp + 0x1c]
test ecx, ecx
jne 0x456b92
push 0x900934
push dword [ebp + 0xc]
call fcn.0046263c
add esp, 8
mov dword [ebp - 0x2c], eax
mov dword [ebp + 0x1c], 1
jmp 0x456bb3
mov eax, dword [0x900938]
mov edx, eax
sar edx, 0x1f
cmp edx, 0
jne 0x456baa
cmp eax, 0
seta al
jmp 0x456bad
setg al
and eax, 1
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
test edx, edx
je 0x456d1e
mov ecx, dword [0x6fb2b8]
test ecx, ecx
jne 0x456c32
mov eax, dword [0x6fb2bc]
test eax, eax
jne 0x456c32
mov edx, dword [0x760e38]
test edx, edx
jne 0x456c32
mov ecx, dword [0x6fb2c0]
test ecx, ecx
jne 0x456c32
mov eax, dword [0x6fb2cc]
test eax, eax
jne 0x456c32
mov edx, dword [0x6fb2d0]
test edx, edx
jne 0x456c32
mov ecx, dword [0x6fb2e8]
test ecx, ecx
jne 0x456c32
mov eax, dword [0x6fb2d8]
test eax, eax
jne 0x456c32
mov edx, dword [0x6fb360]
test edx, edx
jne 0x456c32
mov ecx, dword [0x6fb2f4]
test ecx, ecx
jne 0x456c32
mov eax, dword [0x6fb2f8]
test eax, eax
jne 0x456c32
mov edx, dword [0x6fb2fc]
test edx, edx
je 0x456c64
push dword [ebp + 0xc]
push 0x5a88
call fcn.00402b9c
pop ecx
push eax
push 0xa00988
call fcn.006712b0
add esp, 0xc
push 0xa00988
push 0
call fcn.00462ac8
add esp, 8
xor eax, eax
jmp 0x4579f9
mov edx, dword [0x6fb2ec]
test edx, edx
je 0x456c7c
mov ecx, dword [0x6fb1e0]
test ecx, ecx
jne 0x456d1e
mov eax, dword [0x775994]
test eax, eax
jne 0x456cbb
push dword [ebp + 0xc]
push 0x5a89
call fcn.00402b9c
pop ecx
push eax
push 0xa00988
call fcn.006712b0
add esp, 0xc
push 0xa00988
push 0
call fcn.00462af8
add esp, 8
test eax, eax
jne 0x456cbb
xor eax, eax
jmp 0x4579f9
mov dword [0x6fb1e0], 1
mov dword [0x6fb2ec], 1
xor edx, edx
mov dword [0x6fb1dc], edx
xor ecx, ecx
mov dword [0x6fb1d8], ecx
xor eax, eax
mov dword [0x6fb16c], eax
xor edx, edx
mov dword [0x6fb304], edx
xor ecx, ecx
mov dword [0x6fb28c], ecx
mov dword [0x6fb284], 0x1f
xor eax, eax
mov dword [0x6fb294], eax
xor edx, edx
mov dword [0x6fb274], edx
xor ecx, ecx
mov dword [0x6fb2ac], ecx
xor eax, eax
mov dword [0x6fb300], eax
lea esi, [ebp - 0x60]
lea edi, [ebp - 0x84]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
mov edx, dword [0x6fb3a4]
cmp eax, edx
jne 0x456d5e
push 0x760d30
push dword [ebp + 0x10]
call fcn.0066cdbc
add esp, 8
test eax, eax
jne 0x456d5e
lea esi, [ebp - 0x60]
mov edi, 0x90090c
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebp + 8]
mov edx, dword [0x6fb3a4]
cmp eax, edx
jne 0x456da0
push 0x760d32
push dword [ebp + 0x10]
call fcn.0066cdbc
add esp, 8
test eax, eax
jne 0x456da0
mov esi, 0x90090c
lea edi, [ebp - 0x60]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
mov esi, 0x90090c
lea edi, [ebp - 0x84]
mov ecx, 9
rep movsd dword es:[edi], dword [esi]
xor eax, eax
mov dword [ebp - 0x14], eax
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0xc]
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
test eax, eax
je 0x456de5
push dword [ebp + 0x10]
mov edx, dword [ebp - 4]
push dword [edx + 0x12c]
call fcn.0066d004
add esp, 8
test eax, eax
jne 0x456dd6
mov dword [ebp - 0x14], 1
jmp 0x456de5
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
test edx, edx
jne 0x456db5
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je case.0x456e93.0
mov eax, dword [ebp - 4]
mov dl, byte [eax + 0x121]
test dl, dl
jne case.0x456e93.0
mov ecx, dword [0x75fabc]
inc ecx
jne 0x456ee9
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x134]
mov dword [ebp - 0x8d4], edx
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x118]
mov dword [ebp - 0x8cc], eax
mov eax, dword [ecx + 0x11c]
mov dword [ebp - 0x8c8], eax
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x124]
mov dword [ebp - 0x8c4], ecx
xor eax, eax
mov dword [ebp - 0x8c0], eax
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x8bc], edx
mov ecx, dword [0x900934]
mov dword [ebp - 0x8b4], ecx
mov ecx, dword [0x900938]
mov dword [ebp - 0x8b0], ecx
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x8ac], eax
xor edx, edx
mov dword [ebp - 0x8a8], edx
lea ecx, [ebp - 0x8d4]
push ecx
call fcn.004b3734
pop ecx
cmp eax, 5
ja case.0x456e93.0
jmp dword [eax*4 + 0x456e9a]
mov dword [0x75fabc], 1
jmp case.0x456e93.0
xor eax, eax
jmp 0x4579f9
xor edx, edx
mov dword [0x75fabc], edx
xor eax, eax
jmp 0x4579f9
mov dword [0x75fabc], 0xfffffffe
xor eax, eax
jmp 0x4579f9
mov edx, dword [0x75fabc]
test edx, edx
jne case.0x456e93.0
xor eax, eax
jmp 0x4579f9
mov edx, dword [ebp - 0x14]
test edx, edx
je 0x456fc8
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x14c]
test eax, eax
je 0x456f2c
mov edx, dword [ebp - 4]
push dword [edx + 0x14c]
call fcn.00450978
pop ecx
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [ecx + 0x14c], eax
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x12c]
test ecx, ecx
je 0x456f53
mov eax, dword [ebp - 4]
push dword [eax + 0x12c]
call fcn.00450978
pop ecx
mov edx, dword [ebp - 4]
xor ecx, ecx
mov dword [edx + 0x12c], ecx
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x134]
test edx, edx
je 0x456f7a
mov ecx, dword [ebp - 4]
push dword [ecx + 0x134]
call fcn.00450978
pop ecx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x134], edx
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x130]
test eax, eax
je 0x456fa1
mov edx, dword [ebp - 4]
push dword [edx + 0x130]
call fcn.00450978
pop ecx
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [ecx + 0x130], eax
mov edx, dword [ebp - 4]
mov cl, byte [edx + 0x121]
test cl, cl
jne 0x457007
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x110]
add edx, 0x7ff
shr edx, 0xb
sub dword [0x6ebec0], edx
jmp 0x457007
push 0x190
call fcn.00450918
pop ecx
mov dword [ebp - 4], eax
push 0x190
push 0
push dword [ebp - 4]
call fcn.0066cc88
add esp, 0xc
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 0xc]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov dword [ecx + 0xc], eax
mov edx, dword [ebp - 4]
xor ecx, ecx
mov dword [edx + 0x130], ecx
push dword [ebp + 0x10]
call fcn.004508d8
pop ecx
mov edx, dword [ebp - 4]
mov dword [edx + 0x12c], eax
push dword [ebp + 0xc]
call fcn.004508d8
pop ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x134], eax
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x144], edx
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x457068
mov ecx, dword [0x6ebd14]
test ecx, ecx
je 0x45705d
mov eax, dword [0x6fb168]
mov edx, dword [ebp - 4]
mov dword [edx + 0x16c], eax
dec dword [0x6fb168]
jmp 0x457068
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [ecx + 0x16c], eax
xor edx, edx
mov dword [ebp - 0x18], edx
push dword [ebp + 0x10]
call fcn.0066ce38
pop ecx
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x457164
mov eax, dword [0x6ebc70]
test eax, eax
je 0x457164
mov edx, dword [0x6fb1d8]
test edx, edx
jne 0x457136
mov ecx, dword [0x6fb1dc]
test ecx, ecx
jne 0x4570dc
mov eax, dword [0x6fb28c]
test eax, eax
jne 0x4570c6
mov edx, dword [ebp - 0x1c]
cmp edx, 0xc
jle 0x4570dc
mov dword [0x6fb1dc], 1
jmp 0x4570dc
mov ecx, dword [ebp - 0x1c]
mov eax, dword [0x6fb284]
cmp ecx, eax
jle 0x4570dc
mov dword [0x6fb1dc], 1
mov edx, dword [0x6fb1dc]
test edx, edx
jne 0x457136
mov ecx, dword [0x6fb294]
test ecx, ecx
jne 0x457136
xor eax, eax
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x1c]
cmp edx, ecx
jge 0x457136
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp + 0x10]
movsx ecx, byte [edx + eax]
cmp ecx, 0x61
jl 0x457129
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp + 0x10]
movsx ecx, byte [edx + eax]
cmp ecx, 0x7a
jg 0x457129
mov dword [0x6fb1dc], 1
jmp 0x457136
inc dword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x1c]
cmp eax, edx
jl 0x4570ff
mov ecx, dword [0x6fb1dc]
test ecx, ecx
je 0x457164
mov eax, dword [ebp - 0x1c]
cmp eax, 0x40
jle 0x457164
mov dword [0x6fb2ac], 1
mov edx, dword [ebp - 0x1c]
cmp edx, 0x6e
jle 0x457164
mov dword [0x6fb1e0], 1
mov ecx, dword [ebp + 0x14]
test ecx, ecx
je 0x457190
mov eax, dword [0x6ebcc0]
test eax, eax
je 0x457190
mov edx, dword [0x6fb1dc]
test edx, edx
je 0x457190
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0x40
jle 0x457190
mov dword [0x6fb2ac], 1
mov eax, dword [0x6ebee4]
test eax, eax
jne 0x4571b2
push dword [ebp + 0xc]
call sub.KERNEL32.DLL_GetFileAttributesA
test al, 2
je 0x4571b2
mov edx, dword [ebp - 4]
or dword [edx + 0x144], 0x100
mov ecx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov dword [eax + 0x138], ecx
mov edx, dword [ebp - 4]
mov byte [edx + 0x21], 0
mov ecx, dword [ebp - 4]
test byte [ecx + 0x145], 1
je 0x4571d8
mov eax, dword [ebp - 4]
or byte [eax + 0x21], 1
mov edx, dword [ebp - 4]
mov byte [edx + 9], 0
push dword [ebp - 0x44]
mov ecx, dword [ebp - 4]
add ecx, 0x1a
push ecx
call fcn.0045071c
add esp, 8
mov eax, dword [ebp - 4]
mov byte [eax + 0x22], 0
mov edx, dword [ebp - 4]
mov byte [edx + 0x23], 0
mov ecx, dword [0x6fb304]
test ecx, ecx
je 0x457389
mov eax, dword [ebp - 0x20]
test eax, eax
jne 0x457389
mov edx, dword [ebp - 4]
xor ecx, ecx
mov dword [edx + 0x160], ecx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x15c], edx
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [ecx + 0x164], eax
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x168], edx
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x45726b
mov edx, dword [ebp - 4]
or byte [edx + 0x21], 4
mov ecx, dword [ebp + 0x18]
mov eax, dword [ebp - 4]
mov dword [eax + 0x168], ecx
mov edx, dword [ebp - 4]
or dword [edx + 0x144], 8
jmp 0x4572b5
mov ecx, dword [ebp - 4]
mov eax, dword [ecx]
test eax, eax
je 0x4572b5
mov edx, dword [ebp - 4]
mov ecx, dword [edx]
test byte [ecx + 0x21], 4
je 0x4572b5
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x15c], edx
mov eax, dword [ebp - 4]
mov edx, dword [eax]
mov ecx, dword [edx + 0x160]
mov eax, dword [ebp - 4]
mov dword [eax + 0x160], ecx
mov edx, dword [ebp - 4]
mov ecx, dword [edx]
mov eax, dword [ecx + 0x168]
mov edx, dword [ebp - 4]
mov dword [edx + 0x168], eax
mov ecx, dword [0x6fb304]
test ecx, ecx
je 0x457389
push 0x760d35
push dword [ebp + 0x10]
call fcn.0066cdbc
add esp, 8
test eax, eax
je 0x457389
push 0x760d37
push dword [ebp + 0x10]
call fcn.0066cdbc
add esp, 8
test eax, eax
je 0x457389
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x160]
test edx, edx
jne 0x457326
push 0x50
call fcn.00450918
pop ecx
mov dword [ebp - 0x34], eax
push 0x50
push 0
push dword [ebp - 0x34]
call fcn.0066cc88
add esp, 0xc
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 4]
mov dword [eax + 0x160], ecx
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x45735c
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x160]
mov edx, dword [ebp - 0x70]
mov dword [eax + 0x42], edx
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x160]
mov edx, dword [ebp - 0x64]
mov dword [eax + 0x2c], edx
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x160]
mov edx, dword [ebp - 0x68]
mov dword [eax + 0x30], edx
jmp 0x457389
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x160]
mov edx, dword [ebp - 0x70]
mov dword [eax + 0x3e], edx
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x160]
mov edx, dword [ebp - 0x64]
mov dword [eax + 0x2c], edx
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x160]
mov edx, dword [ebp - 0x68]
mov dword [eax + 0x30], edx
push 0x760d3a
push dword [ebp + 0x10]
call fcn.0066cdbc
add esp, 8
test eax, eax
jne 0x4573a5
mov ecx, dword [ebp + 8]
or word [ecx + 0x40], 2
push 0x760d3c
push dword [ebp + 0x10]
call fcn.0066cdbc
add esp, 8
test eax, eax
jne 0x4573c1
mov eax, dword [ebp + 8]
or word [eax + 0x40], 4
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x457410
mov eax, dword [ebp + 8]
mov edx, dword [eax + 8]
mov ecx, dword [0x900930]
cmp edx, ecx
jne 0x457410
push 0x760d3f
push dword [ebp + 0x10]
call fcn.0066cdbc
add esp, 8
test eax, eax
jne 0x457410
mov eax, dword [ebp - 4]
mov word [eax + 0x148], 0x7fff
mov edx, dword [ebp - 4]
mov word [edx + 0x14a], 0x7fff
mov dword [ebp - 0x18], 2
jmp 0x457457
mov ecx, dword [0x6fb304]
test ecx, ecx
je 0x45743b
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x45743b
mov edx, dword [ebp - 4]
mov word [edx + 0x148], 0x7fff
mov ecx, dword [ebp - 4]
mov word [ecx + 0x14a], 0x7fff
jmp 0x457457
mov ax, word [ebp - 0x5e]
mov edx, dword [ebp - 4]
mov word [edx + 0x148], ax
mov cx, word [ebp - 0x60]
mov eax, dword [ebp - 4]
mov word [eax + 0x14a], cx
push dword [0x6fb264]
mov edx, dword [ebp - 4]
add edx, 0x24
push edx
call fcn.00439358
add esp, 8
movsx ecx, word [ebp - 0x5c]
and ecx, 0x4000
push ecx
push dword [ebp - 4]
push dword [ebp + 0x10]
call fcn.0045013c
add esp, 0xc
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x150], edx
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [ecx + 0x154], eax
mov edx, dword [ebp - 4]
xor ecx, ecx
mov dword [edx + 0x14c], ecx
mov eax, dword [ebp - 4]
mov byte [eax + 0x120], 0
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x124], edx
test byte [ebp - 0x5b], 0x40
jne 0x45757f
test byte [ebp - 0x7f], 0x20
jne 0x4574d8
test byte [ebp - 0x7f], 0x30
jne 0x4574d8
test byte [ebp - 0x7f], 0x10
je 0x4574fd
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x110], edx
mov eax, edx
xor edx, edx
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x118], eax
mov dword [ecx + 0x11c], edx
xor eax, eax
mov dword [ebp - 0x4c], eax
jmp 0x457565
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x110], edx
mov eax, dword [ebp - 4]
mov edx, dword [0x900934]
mov dword [eax + 0x118], edx
mov edx, dword [0x900938]
mov dword [eax + 0x11c], edx
push 0
push 0x800
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x118]
mov edx, dword [ecx + 0x11c]
add eax, 0x7ff
adc edx, 0
call fcn.00674923
add dword [0x6ebec0], eax
mov edx, dword [ebp - 4]
mov byte [edx + 0x121], 0
inc dword [0x6ed0d4]
push 1
call fcn.0042792c
pop ecx
mov ecx, dword [ebp - 4]
push dword [ecx + 0x110]
mov eax, dword [ebp - 4]
add eax, 0x12
push eax
call fcn.004393fc
add esp, 8
jmp 0x457596
mov edx, dword [ebp - 4]
or byte [edx + 0x21], 2
mov ecx, dword [ebp - 4]
mov byte [ecx + 0x121], 1
inc dword [0x6ed0d8]
mov eax, dword [0x6fb304]
test eax, eax
je 0x4575e6
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x160]
test ecx, ecx
je 0x4575e6
mov eax, dword [ebp - 4]
test byte [eax + 0x21], 2
je 0x4575e6
push dword [ebp - 4]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004db6d4
add esp, 0xc
mov edx, dword [0x6fb310]
test edx, edx
je 0x4575e6
push 1
push dword [ebp - 4]
mov ecx, dword [ebp - 4]
push dword [ecx + 0x160]
call fcn.0045013c
add esp, 0xc
mov eax, dword [0x6fb1d8]
test eax, eax
je 0x4577e5
push 0x760d42
push dword [ebp + 0x10]
call fcn.0066cdbc
add esp, 8
test eax, eax
je 0x4577e5
push 0x760d44
push dword [ebp + 0x10]
call fcn.0066cdbc
add esp, 8
test eax, eax
je 0x4577e5
test byte [ebp - 0x5b], 0x40
je 0x4577e5
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x24]
mov eax, dword [0x6fb27c]
cmp ecx, eax
jbe 0x4577e5
mov edx, dword [0x900930]
test edx, edx
jne 0x45764f
call fcn.004560cc
push 0x190
call fcn.00450918
pop ecx
mov dword [ebp - 8], eax
push 0x190
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0066cc18
add esp, 0xc
mov ecx, dword [ebp - 8]
xor eax, eax
mov dword [ecx + 0x130], eax
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0xc]
push dword [ecx + 0x12c]
call fcn.004508d8
pop ecx
mov edx, dword [ebp - 8]
mov dword [edx + 0x12c], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
push dword [ecx + 0x134]
call fcn.004508d8
pop ecx
mov edx, dword [ebp - 8]
mov dword [edx + 0x134], eax
mov eax, dword [0x900930]
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp - 8]
mov dword [eax], ecx
mov edx, dword [0x900930]
mov ecx, dword [ebp - 8]
mov dword [edx + 0xc], ecx
mov eax, dword [ebp - 8]
mov word [eax + 0x128], 0x8000
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0xc]
mov eax, dword [ebp - 8]
mov dword [eax + 0x13c], ecx
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x140], edx
mov eax, dword [ebp - 4]
mov byte [eax + 0x122], 1
push dword [0x6fb264]
mov edx, dword [ebp - 8]
add edx, 0x24
push edx
call fcn.00439358
add esp, 8
mov dword [ebp - 0x18], 1
push dword [ebp - 0x18]
lea ecx, [ebp - 0x84]
push ecx
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004afb48
add esp, 0x18
xor edx, edx
mov dword [ebp - 0x18], edx
mov ecx, dword [ebp - 8]
mov eax, dword [0x900930]
mov dword [ecx + 0x138], eax
push 0
push dword [ebp - 8]
push dword [ebp + 0xc]
push dword [0x900930]
call fcn.00457a00
add esp, 0x10
mov dword [ebp - 0x38], eax
push dword [ebp - 8]
push dword [ebp + 0xc]
push dword [ebp - 0x38]
call fcn.00456568
add esp, 0xc
mov edx, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov dword [edx + 0x138], ecx
xor eax, eax
mov dword [ebp - 0x4c], eax
and word [ebp - 0x5c], 0x1ff
push 0
mov edx, dword [ebp - 4]
add edx, 0x12
push edx
call fcn.004393fc
add esp, 8
mov ecx, dword [ebp - 4]
xor eax, eax
mov dword [ecx + 0x110], eax
xor edx, edx
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x118], eax
mov dword [ecx + 0x11c], edx
mov eax, dword [ebp - 4]
mov byte [eax + 0x21], 0
mov edx, dword [ebp - 4]
mov byte [edx + 0x121], 0
mov ecx, dword [ebp - 4]
mov word [ecx + 0x148], 0x7fff
mov eax, dword [ebp - 4]
or dword [eax + 0x144], 0x20
mov dword [ebp - 0x18], 4
test byte [ebp - 0x5b], 0x40
je 0x45783a
push 0x760d47
push dword [ebp + 0x10]
call fcn.0066cdbc
add esp, 8
test eax, eax
je 0x45783a
push 0x760d49
push dword [ebp + 0x10]
call fcn.0066cdbc
add esp, 8
test eax, eax
je 0x45783a
push 1
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00457a00
add esp, 0x10
mov dword [ebp - 0x3c], eax
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp - 0x3c]
call fcn.00456568
add esp, 0xc
mov edx, dword [0x6fb304]
test edx, edx
je 0x457965
mov ecx, dword [ebp + 0x18]
test ecx, ecx
jne 0x457965
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x160]
test edx, edx
je 0x457965
test byte [ebp - 0x7f], 0x80
je 0x457900
push dword [ebp - 4]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004db71c
add esp, 0xc
mov ecx, dword [0x6fb310]
test ecx, ecx
je 0x45789f
push 0
push dword [ebp - 4]
mov eax, dword [ebp - 4]
push dword [eax + 0x160]
call fcn.0045013c
add esp, 0xc
mov edx, dword [0x6fb1e4]
cmp edx, 2
jle 0x4578b3
push dword [ebp - 4]
call fcn.004db980
pop ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x15c]
test eax, eax
je 0x4578dc
mov edx, dword [ebp - 4]
add edx, 0x29
push edx
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x15c]
add eax, 0x29
push eax
call fcn.0066ce08
add esp, 8
mov edx, dword [0x6fb304]
test edx, edx
je 0x45793c
mov ecx, dword [ebp - 4]
mov word [ecx + 0x148], 0x7fff
mov eax, dword [ebp - 4]
mov word [eax + 0x14a], 0x7fff
jmp 0x45793c
mov edx, dword [ebp - 4]
test byte [edx + 0x21], 2
jne 0x45793c
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x160]
test eax, eax
je 0x457931
mov edx, dword [ebp - 4]
test byte [edx + 0x144], 0x20
jne 0x457931
mov ecx, dword [ebp - 4]
push dword [ecx + 0x160]
call fcn.0066c63c
pop ecx
mov eax, dword [ebp - 4]
xor edx, edx
mov dword [eax + 0x160], edx
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x15c]
test eax, eax
je 0x457965
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x15c]
mov eax, dword [ecx + 0x110]
test eax, eax
jne 0x457965
push dword [ebp - 4]
call fcn.004dbecc
pop ecx
mov edx, dword [0x6fb308]
test edx, edx
je 0x4579a1
mov ecx, dword [ebp - 4]
mov eax, dword [ecx + 0x15c]
test eax, eax
je 0x4579a1
push dword [ebp - 0x18]
lea edx, [ebp - 0x84]
push edx
lea ecx, [ebp - 0x60]
push ecx
mov eax, dword [ebp - 4]
push dword [eax + 0x15c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004afb48
add esp, 0x18
mov edx, dword [0x6fb1d8]
test edx, edx
je 0x4579f4
mov ecx, dword [ebp + 8]
mov eax, dword [0x6fb3a4]
cmp ecx, eax
jne 0x4579d5
push 0x760d4c
mov edx, dword [ebp - 4]
push dword [edx + 0x12c]
call fcn.0066cdbc
add esp, 8
test eax, eax
jne 0x4579d5
or dword [ebp - 0x18], 0x18
push dword [ebp - 0x18]
lea ecx, [ebp - 0x84]
push ecx
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 4]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004afb48
add esp, 0x18
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret